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 | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -190,16 +190,10 @@ surfaces
|
||||
|
||||
cutting
|
||||
{
|
||||
type plane;
|
||||
planeType pointAndNormal;
|
||||
|
||||
pointAndNormalDict
|
||||
{
|
||||
point (100 100 50);
|
||||
normal (1 0 0);
|
||||
}
|
||||
|
||||
offsets (0 100 200);
|
||||
type plane;
|
||||
point (100 100 50);
|
||||
normal (1 0 0);
|
||||
offsets (0 100 200);
|
||||
|
||||
smooth true;
|
||||
colourMap coolToWarm;
|
||||
|
||||
@ -151,12 +151,8 @@ sets
|
||||
|
||||
|
||||
// Surface sampling definition
|
||||
//
|
||||
// 1] patches are not triangulated by default
|
||||
// 2] planes are always triangulated
|
||||
// 3] iso-surfaces are always triangulated
|
||||
surfaces
|
||||
(
|
||||
{
|
||||
constantPlane
|
||||
{
|
||||
type plane; // always triangulated
|
||||
@ -262,15 +258,11 @@ surfaces
|
||||
|
||||
triangleCut
|
||||
{
|
||||
// Cutingplane using iso surface
|
||||
type cuttingPlane;
|
||||
planeType pointAndNormal;
|
||||
pointAndNormalDict
|
||||
{
|
||||
basePoint (0.4 0 0.4);
|
||||
normalVector (1 0.2 0.2);
|
||||
}
|
||||
interpolate true;
|
||||
// Cutting plane : using iso surface
|
||||
type cuttingPlane;
|
||||
point (0.4 0 0.4);
|
||||
normal (1 0.2 0.2);
|
||||
interpolate true;
|
||||
|
||||
//zone ABC; // Optional: zone only
|
||||
//exposedPatchName fixedWalls; // Optional: zone only
|
||||
@ -310,7 +302,7 @@ surfaces
|
||||
// boundaryFaces (nearest boundary face)
|
||||
interpolate true;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// *********************************************************************** //
|
||||
|
||||
Reference in New Issue
Block a user