mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: cvMesh and cv2DMesh removed
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -90,7 +90,6 @@ Foam::extrude2DMesh::extrude2DMesh
|
||||
dict_(dict),
|
||||
//patchDict_(dict.subDict("patchInfo")),
|
||||
model_(model),
|
||||
modelType_(dict.lookup("extrudeModel")),
|
||||
patchType_(dict.lookup("patchType")),
|
||||
frontPatchI_(-1),
|
||||
backPatchI_(-1)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -53,10 +53,9 @@ class polyMesh;
|
||||
class polyTopoChange;
|
||||
class mapPolyMesh;
|
||||
class mapDistributePolyMesh;
|
||||
class polyBoundaryMesh;
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class extrude2DMesh Declaration
|
||||
Class extrude2DMesh Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class extrude2DMesh
|
||||
@ -66,19 +65,24 @@ class extrude2DMesh
|
||||
//- Reference to 2D mesh
|
||||
polyMesh& mesh_;
|
||||
|
||||
//- Extrusion dictionary
|
||||
const dictionary dict_;
|
||||
|
||||
//const dictionary patchDict_;
|
||||
|
||||
//- The extrusion model
|
||||
const extrudeModel& model_;
|
||||
|
||||
const word modelType_;
|
||||
|
||||
//- Type of the patches that will be created by the extrusion.
|
||||
const word patchType_;
|
||||
|
||||
//- Patch ID of the front patch
|
||||
label frontPatchI_;
|
||||
|
||||
//- Patch ID of the back patch
|
||||
label backPatchI_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Check the mesh is 2D
|
||||
@ -93,6 +97,7 @@ class extrude2DMesh
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const extrude2DMesh&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -100,6 +105,8 @@ public:
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from a 2D polyMesh, a dictionary and an extrusion model
|
||||
extrude2DMesh
|
||||
(
|
||||
polyMesh&,
|
||||
@ -114,30 +121,36 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
//- Add front and back patches
|
||||
void addFrontBackPatches();
|
||||
// Access
|
||||
|
||||
//- Play commands into polyTopoChange to extrude mesh.
|
||||
void setRefinement(polyTopoChange&);
|
||||
//- Return the patch ID of the front patch
|
||||
inline label frontPatchI() const
|
||||
{
|
||||
return frontPatchI_;
|
||||
}
|
||||
|
||||
//- Force recalculation of locally stored data on topological change
|
||||
void updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
//- Return the patch ID of the back patch
|
||||
inline label backPatchI() const
|
||||
{
|
||||
return backPatchI_;
|
||||
}
|
||||
|
||||
//- Force recalculation of locally stored data for mesh distribution
|
||||
void distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
|
||||
label frontPatchI() const
|
||||
{
|
||||
return frontPatchI_;
|
||||
}
|
||||
// Edit
|
||||
|
||||
label backPatchI() const
|
||||
{
|
||||
return backPatchI_;
|
||||
}
|
||||
//- Add front and back patches
|
||||
void addFrontBackPatches();
|
||||
|
||||
//- Play commands into polyTopoChange to extrude mesh.
|
||||
void setRefinement(polyTopoChange&);
|
||||
|
||||
//- Force recalculation of locally stored data on topological change
|
||||
void updateMesh(const mapPolyMesh&)
|
||||
{}
|
||||
|
||||
//- Force recalculation of locally stored data for mesh distribution
|
||||
void distribute(const mapDistributePolyMesh&)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -5,42 +5,48 @@
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
|
||||
root "";
|
||||
case "";
|
||||
instance "";
|
||||
local "";
|
||||
|
||||
class dictionary;
|
||||
object extrude2DMeshDict;
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object extrude2DMeshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Type of extrusion
|
||||
extrudeModel linearDirection;
|
||||
//extrudeModel wedge;
|
||||
|
||||
// Patch type the extruded patches will take
|
||||
patchType empty;
|
||||
//patchType wedge;
|
||||
|
||||
// Number of layers to extrude
|
||||
nLayers 1;
|
||||
|
||||
// Expansion ratio. If >1 then grows the layers
|
||||
expansionRatio 1.0;
|
||||
|
||||
linearDirectionCoeffs
|
||||
{
|
||||
// Direction of extrusion
|
||||
direction (0 0 1);
|
||||
|
||||
// Width of newly extruded cells
|
||||
thickness 0.1;
|
||||
}
|
||||
|
||||
wedgeCoeffs
|
||||
{
|
||||
axisPt (0 0 0);
|
||||
axis (1 0 0);
|
||||
angle 10;
|
||||
// Point the extrusion axis goes through
|
||||
axisPt (0 0 0);
|
||||
|
||||
// Axis to extrude around
|
||||
axis (1 0 0);
|
||||
|
||||
// Total angle of the wedge in degrees
|
||||
angle 10;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user