Hi Jane, 
Hi Wolfgang,

The case that I was looking at was to solve for a velocity field variable. 

As Wolfgang nicely describes, the power of the idea is to take a line 
integral equation and by operating on the equality, to formulate it as a 
PDE. So, if you are interested in a displacement field as the solution 
variable then, properly formulated, that should work fine with the 
technique of moving from integral to differential formulation. 

A quick remark:
This line of your attached code does not, on the face of it, make sense to 
me dimensionally. 

cell->vertex(v) += vertex_displacement*timestep_size;

For a displacement to add to a vertex coordinate [L], shouldn't we expect a 
velocity [L/T] on the right hand side to be mulitiplied by dt [T]?

Best,
Sean


On Monday, October 15, 2018 at 4:46:50 PM UTC+2, Wolfgang Bangerth wrote:
>
> On 10/15/2018 05:27 AM, Jane Lee wrote: 
> > 
> > I see what you mean though I am confused how you got to the equation for 
> > the displacement? Surely there needs to be some time dependence 
> > somewhere at least for it to make sense dimensionally? 
>
> I may have used the wrong terminology and forgotten a factor of delta t. 
> But if you start here: 
>
> >      > However, I realised that this moves each vertex by the velocity 
> >     at that point, 
> >      > but I need, for example, a vertex on the top boundary to have 
> >     moved as much as 
> >      > the ones below it has moved as well as the velocity at the points 
> >     itself. 
>
> ...then you get to an equation like this: 
>
> >         d(x,y,z) = \int_z^0 v(x,y,zeta) dzeta 
>
> ...where d(...) is the *cumulative displacement* by which you want to 
> move the vertex and v(...) is the individual displacement you get. If 
> you differentiate the formula by z, then you get 
>
>   d/dz d(x,y,z) = -v(x,y,z) 
>
> which is the advection equation I mentioned in my previous post, and for 
> which it is substantially easier to solve than to compute the integral. 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 [email protected] 
> <javascript:> 
>                             www: http://www.math.colostate.edu/~bangerth/ 
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to