mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve distanceSurface handling (issue #1012)
- 'signed' input parameter only mandatory for distance > 0. A distance <= 0 is always signed and the input parameter is ignored. - Use normal distance when distance == 0. This has no effect when the surface has no open edges, but improves on rounding issues around the zero crossing when the surface has open edges. This may still need future revisiting.
This commit is contained in:
@ -42,6 +42,13 @@ debug
|
||||
}
|
||||
}
|
||||
|
||||
_disk1
|
||||
{
|
||||
surfaceType disk;
|
||||
origin (-0.1 -0.05 0);
|
||||
normal (1 1 1);
|
||||
radius 0.015;
|
||||
}
|
||||
|
||||
surfaces
|
||||
(
|
||||
@ -55,6 +62,16 @@ debug
|
||||
surfaceName angledPlane.obj;
|
||||
}
|
||||
|
||||
disk1
|
||||
{
|
||||
${_disk1}
|
||||
type distanceSurface;
|
||||
distance 0;
|
||||
cell false;
|
||||
signed true;
|
||||
triangulate false;
|
||||
}
|
||||
|
||||
iso
|
||||
{
|
||||
type isoSurface;
|
||||
|
||||
Reference in New Issue
Block a user