GfsSolid

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:11, 19 August 2009
DrondRonvi (Talk | contribs)

← Previous diff
Revision as of 05:54, 22 May 2012
Popinet (Talk | contribs)
(Added comment on BCs)
Next diff →
Line 1: Line 1:
-GfsSolid is used to define solid boundaries.+GfsSolid is used to define solid boundaries. By default the boundary conditions are [[w:no-slip_condition|no-slip]] for velocity and zero normal gradient for tracers (use [[GfsSurfaceBc]] to change this).
- + 
The syntax in parameter files is: The syntax in parameter files is:

Revision as of 05:54, 22 May 2012

GfsSolid is used to define solid boundaries. By default the boundary conditions are no-slip for velocity and zero normal gradient for tracers (use GfsSurfaceBc to change this).

The syntax in parameter files is:

GfsSolid [ GfsSurface ]

If GfsSurface is defined implicitly, by convention the fluid domain is the locus of points for which the implicit function takes positive values.

Note that in order to use a full C function (in contrast to a C expression) as surface definition, the function definition must be "protected" with straight brackets for example this:

Solid {
  double r = 0.0625;
  return x*x + y*y - r*r; 
}

will not work but this will:

Solid ({
  double r = 0.0625;
  return x*x + y*y - r*r; 
})

Examples

Personal tools
communication