GfsRefineDistance

From Gerris

Jump to: navigation, search

For each candidate cell, GfsRefineDistance computes the distance from the cell center to the given surface, stores it in a new variable Distance, and makes it available to the user-defined function which computes the maximum level of refinement allowed.

The syntax in parameter files is

 [ GfsRefineSurface ]

Unlike GfsRefineSurface, GfsRefineDistance only works if the surface is given by a GTS file, not implicitly as a level-set; for implicitly defined surfaces one should resort to GfsRefine.

Example: (from an input file posted to Gfs-users mailing list)

 RefineDistance (6*pow(Distance + 1, -12)+4) ../clarky.gts {tx = -0.145 ty = 0.0259056926297 tz = 0 rx = 0 ry = 0 rz = -7.19 sx = 0.3 sy = 0.3 sz = 0.3}


Personal tools
communication