mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: make 'planeType' optional for dictionary construct of a plane
- simpler to write for sampled cutting planes etc.
For example,
slice
{
type cuttingPlane;
point (0 0 0);
normal (0 0 1);
interpolate true;
}
instead of
slice
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
point (0 0 0);
normal (0 0 1);
}
interpolate true;
}
STYLE: add noexcept to some plane methods
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -22,14 +22,10 @@ cuttingPlane
|
||||
{
|
||||
zNormal
|
||||
{
|
||||
type cuttingPlane;
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
point (0 0 0);
|
||||
normal (0 0 1);
|
||||
}
|
||||
interpolate true;
|
||||
type cuttingPlane;
|
||||
point (0 0 0);
|
||||
normal (0 0 1);
|
||||
interpolate true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -100,14 +100,10 @@ plane
|
||||
{
|
||||
zNormal
|
||||
{
|
||||
type cuttingPlane;
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
point (0 0 0);
|
||||
normal (0 0 1);
|
||||
}
|
||||
interpolate false;
|
||||
type cuttingPlane;
|
||||
point (0 0 0);
|
||||
normal (0 0 1);
|
||||
interpolate false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -80,13 +80,8 @@ sampled
|
||||
source cells;
|
||||
store true;
|
||||
|
||||
planeType pointAndNormal;
|
||||
|
||||
pointAndNormalDict
|
||||
{
|
||||
normal (-1 0 0);
|
||||
point (-0.04 0 0);
|
||||
}
|
||||
point (-0.04 0 0);
|
||||
normal (-1 0 0);
|
||||
}
|
||||
|
||||
surfaces
|
||||
|
||||
@ -43,14 +43,9 @@ debug
|
||||
source cells;
|
||||
triangulate false;
|
||||
|
||||
planeType pointAndNormal;
|
||||
|
||||
pointAndNormalDict
|
||||
{
|
||||
normal (-1 0 0);
|
||||
point (-0.042 0 0);
|
||||
// point (-0.0425 0 0); // between faces
|
||||
}
|
||||
normal (-1 0 0);
|
||||
point (-0.042 0 0);
|
||||
///point (-0.0425 0 0); // between faces
|
||||
}
|
||||
|
||||
_disk1
|
||||
|
||||
Reference in New Issue
Block a user