Hi Pepe,
> 1.- As you suggested fms now gathers either metrics and embed factors.
> 2.- VOF can interact with solids preserving the volume (no tricks would
> be necessary).
> 3.- Poisson solver now is compatible with metrics (for the moment just
> axi.h)
That sounds excellent. Can you share the code and I will have a look?
I had started looking into this with the goal of making the
examples/tangaroa.c work with embedded boundaries. One issue was the
compatibility of the treatment of embed + VOF when combined with the
navier-stokes/conserving.h option, which is necessary for stability of
this air/water configuration. I had a first rough version which worked.
Do you think your version would be compatible with
navier-stokes/conserving.h?
> I am not sure what would be the best, to keep on viscosity-embed.h
> making the proper modifications for metric despite some terms are lost,
> or center the efforts in "viscosity.h" adding the embed stuff. What do
> you think?
I think starting from viscosity.h is probably the best option, but your
vision of this is probably "fresher" than mine!
> Also, could you explain me why you do:
>
> p.embed_flux = u.x.boundary[embed] != antisymmetry ? embed_flux : NULL;
Hmm, one important thing to do for viscosity*.h would be to write
documentation!
I am guessing that this has to do with whether default boundary
conditions (i.e. "symmetry") are set for u.x on the boundary. If this is
the case, then this corresponds to pure slip (i.e. Neumann) on the
embedded boundary and the "viscous" flux through the boundary is zero,
otherwise Dirichlet conditions are imposed and the flux must be computed.
cheers,
Stephane