Skip to content
Snippets Groups Projects
Commit 67ea233d authored by Prashant Sonakar's avatar Prashant Sonakar
Browse files

ENH: Usage of locationsInMesh for tutorial and other fix

parent 5cd1ad04
Branches
Tags
No related merge requests found
Showing
with 9447 additions and 38641 deletions
......@@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application rhpPimpleFoam;
application rhoPimpleFoam;
startFrom startTime;
......
Created from separate surfaces with surfaceAdd:
cp bottomAir.stl geom.stl
surfaceAdd -mergeRegions heater.stl geom.stl geom.stl
surfaceAdd -mergeRegions leftSolid.stl geom.stl geom.stl
surfaceAdd -mergeRegions rightSolid.stl geom.stl geom.stl
surfaceAdd -mergeRegions topAir.stl geom.stl geom.stl
......@@ -29,34 +29,10 @@ addLayers false;
// - to 'snap' the mesh boundary to the surface
geometry
{
bottomAir.stl
geom.stl
{
type triSurfaceMesh;
name bottomAir;
}
topAir.stl
{
type triSurfaceMesh;
name topAir;
}
leftSolid.stl
{
type triSurfaceMesh;
name leftSolid;
}
rightSolid.stl
{
type triSurfaceMesh;
name rightSolid;
}
heater.stl
{
type triSurfaceMesh;
name heater;
name geom;
}
};
......@@ -103,23 +79,7 @@ castellatedMeshControls
features
(
{
file "bottomAir.eMesh";
level 1;
}
{
file "heater.eMesh";
level 1;
}
{
file "leftSolid.eMesh";
level 1;
}
{
file "rightSolid.eMesh";
level 1;
}
{
file "topAir.eMesh";
file "geom.extendedFeatureEdgeMesh"; //"geom.eMesh";
level 1;
}
);
......@@ -137,54 +97,10 @@ castellatedMeshControls
refinementSurfaces
{
bottomAir
{
// Surface-wise min and max refinement level
level (1 1);
faceZone bottomAir;
cellZone bottomAir;
cellZoneInside inside;
}
topAir
geom
{
// Surface-wise min and max refinement level
level (1 1);
faceZone topAir;
cellZone topAir;
cellZoneInside inside;
}
heater
{
// Surface-wise min and max refinement level
level (0 0);
faceZone heater;
cellZone heater;
cellZoneInside inside;
}
leftSolid
{
// Surface-wise min and max refinement level
level (1 1);
faceZone leftSolid;
cellZone leftSolid;
cellZoneInside inside;
}
rightSolid
{
// Surface-wise min and max refinement level
level (1 1);
faceZone rightSolid;
cellZone rightSolid;
cellZoneInside inside;
}
}
......@@ -223,7 +139,14 @@ castellatedMeshControls
// section reachable from the locationInMesh is kept.
// NOTE: This point should never be on a face, always inside a cell, even
// after refinement.
locationInMesh (0.01 0.01 0.01);
locationsInMesh
(
(( 0.005 0.005 0.005) heater)
(( 0.05 0.005 0.005) rightSolid)
((-0.05 0.005 0.005) leftSolid)
((-0.05 0.015 0.005) topAir)
((-0.05 -0.015 0.005) bottomAir)
);
// Whether any faceZones (as specified in the refinementSurfaces)
......
......@@ -14,71 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
bottomAir.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
}
// Write options
writeFeatureEdgeMesh yes;
}
heater.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
}
// Write options
writeFeatureEdgeMesh yes;
}
leftSolid.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
}
// Write options
writeFeatureEdgeMesh yes;
}
rightSolid.stl
{
extractionMethod extractFromSurface;
extractFromSurfaceCoeffs
{
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
}
// Write options
writeFeatureEdgeMesh yes;
}
topAir.stl
geom.stl
{
extractionMethod extractFromSurface;
......@@ -93,6 +29,8 @@ topAir.stl
// Write options
writeFeatureEdgeMesh yes;
// Write features to obj format for postprocessing
writeObj yes;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment