From Gerris

Revision as of 20:11, 19 August 2009; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

GfsSolid is used to define solid boundaries.

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; 


Personal tools