mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Usage of locationsInMesh for tutorial and other fix
This commit is contained in:
@ -15,7 +15,7 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
application rhpPimpleFoam;
|
application rhoPimpleFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom startTime;
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,7 @@
|
|||||||
|
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
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -29,34 +29,10 @@ addLayers false;
|
|||||||
// - to 'snap' the mesh boundary to the surface
|
// - to 'snap' the mesh boundary to the surface
|
||||||
geometry
|
geometry
|
||||||
{
|
{
|
||||||
bottomAir.stl
|
geom.stl
|
||||||
{
|
{
|
||||||
type triSurfaceMesh;
|
type triSurfaceMesh;
|
||||||
name bottomAir;
|
name geom;
|
||||||
}
|
|
||||||
|
|
||||||
topAir.stl
|
|
||||||
{
|
|
||||||
type triSurfaceMesh;
|
|
||||||
name topAir;
|
|
||||||
}
|
|
||||||
|
|
||||||
leftSolid.stl
|
|
||||||
{
|
|
||||||
type triSurfaceMesh;
|
|
||||||
name leftSolid;
|
|
||||||
}
|
|
||||||
|
|
||||||
rightSolid.stl
|
|
||||||
{
|
|
||||||
type triSurfaceMesh;
|
|
||||||
name rightSolid;
|
|
||||||
}
|
|
||||||
|
|
||||||
heater.stl
|
|
||||||
{
|
|
||||||
type triSurfaceMesh;
|
|
||||||
name heater;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -103,23 +79,7 @@ castellatedMeshControls
|
|||||||
features
|
features
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
file "bottomAir.eMesh";
|
file "geom.extendedFeatureEdgeMesh"; //"geom.eMesh";
|
||||||
level 1;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
file "heater.eMesh";
|
|
||||||
level 1;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
file "leftSolid.eMesh";
|
|
||||||
level 1;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
file "rightSolid.eMesh";
|
|
||||||
level 1;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
file "topAir.eMesh";
|
|
||||||
level 1;
|
level 1;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -137,54 +97,10 @@ castellatedMeshControls
|
|||||||
|
|
||||||
refinementSurfaces
|
refinementSurfaces
|
||||||
{
|
{
|
||||||
bottomAir
|
geom
|
||||||
{
|
{
|
||||||
// Surface-wise min and max refinement level
|
// Surface-wise min and max refinement level
|
||||||
level (1 1);
|
level (1 1);
|
||||||
|
|
||||||
faceZone bottomAir;
|
|
||||||
cellZone bottomAir;
|
|
||||||
cellZoneInside inside;
|
|
||||||
}
|
|
||||||
|
|
||||||
topAir
|
|
||||||
{
|
|
||||||
// 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.
|
// section reachable from the locationInMesh is kept.
|
||||||
// NOTE: This point should never be on a face, always inside a cell, even
|
// NOTE: This point should never be on a face, always inside a cell, even
|
||||||
// after refinement.
|
// 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)
|
// Whether any faceZones (as specified in the refinementSurfaces)
|
||||||
|
|||||||
@ -14,71 +14,7 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bottomAir.stl
|
geom.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
|
|
||||||
{
|
{
|
||||||
extractionMethod extractFromSurface;
|
extractionMethod extractFromSurface;
|
||||||
|
|
||||||
@ -93,6 +29,8 @@ topAir.stl
|
|||||||
|
|
||||||
// Write options
|
// Write options
|
||||||
writeFeatureEdgeMesh yes;
|
writeFeatureEdgeMesh yes;
|
||||||
|
// Write features to obj format for postprocessing
|
||||||
|
writeObj yes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user