mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: add buffer layers before snapping
This commit is contained in:
78
tutorials/mesh/blockMesh/pipe/0.orig/pointDisplacement
Normal file
78
tutorials/mesh/blockMesh/pipe/0.orig/pointDisplacement
Normal file
@ -0,0 +1,78 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 2309 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
arch "LSB;label=32;scalar=64";
|
||||
class pointVectorField;
|
||||
location "0";
|
||||
object pointDisplacement;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 0 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
|
||||
// Some macros
|
||||
__surfaceSlipDisplacement
|
||||
{
|
||||
type surfaceSlipDisplacement;
|
||||
value uniform (0 0 0);
|
||||
geometry
|
||||
{
|
||||
box
|
||||
{
|
||||
type triSurfaceMesh;
|
||||
file blockMesh.obj;
|
||||
}
|
||||
}
|
||||
projectMode nearest;
|
||||
}
|
||||
|
||||
__edgeSlipDisplacement
|
||||
{
|
||||
type edgeSlipDisplacement;
|
||||
file "blockMesh.eMesh";
|
||||
// Underrelax the displacement on edges since conflicts with
|
||||
// smoothing. TBD.
|
||||
velocity (1 1 1);
|
||||
}
|
||||
|
||||
|
||||
boundaryField
|
||||
{
|
||||
// Attract to feature lines
|
||||
wallsEdges
|
||||
{
|
||||
${__edgeSlipDisplacement};
|
||||
}
|
||||
|
||||
// Attract to feature lines
|
||||
boundaryEdges
|
||||
{
|
||||
${__edgeSlipDisplacement};
|
||||
}
|
||||
|
||||
// Attract to feature lines
|
||||
sideEdges
|
||||
{
|
||||
${__edgeSlipDisplacement};
|
||||
}
|
||||
|
||||
// Default is to attract to surface
|
||||
".*"
|
||||
{
|
||||
${__surfaceSlipDisplacement};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user