|
[Sponsors] |
[snappyHexMesh] Creating multi region mesh for chtMultiregionFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 10, 2019, 15:31 |
Creating multi region mesh for chtMultiregionFoam
|
#1 |
New Member
Nakos
Join Date: Jul 2019
Posts: 1
Rep Power: 0 |
Hello,
I am trying to create a simple case where a pipe with a wall thickness is heated while a fluid is passing through it. I would like to use STL file(s), snappyhexmesh, a solid and fluid region, and have layers in one side of the wetted wall. I am happy using snappyhexmesh for a single region, but for this case I am having problems and cannot figure out how to properly do things. I would some help with setting up my case and STL files so that I can follow the procedure below as done with the shellAndTubeHeatExchanger tutorial. Firstly without addLayers turned on, run: Code:
blockMesh snappyHexMesh -overwrite Code:
createBaffles -overwrite mergeOrSplitBaffles -split -overwrite rm -rf processor*/constant/polyMesh/pointLevel snappyHexMesh -overwrite splitMeshRegions -cellZones -overwrite Issue 1: I am not sure what is the best way to organise my STL surfaces in files. One option is to have two watertight STL files, one for the solid domain and one for the fluid domain. This would mean having the wetted wall surface included in both files, and these would contain the following surfaces as per diagram. domain_solid.stl containing: Code:
solid_outer solid_xc_inlet solid_xc_outlet wetted_wall_to_solid Code:
fluid_inlet fluid_outlet wetted_wall_to_fluid domain_solid.stl containing: Code:
solid_outer solid_xc_inlet solid_xc_outlet Code:
fluid_inlet fluid_outlet Code:
wetted_wall Issue 2: Can you please have a look at the snappyHexMeshDict and also createBafflesDict sections below to see what I am doing wrong? Currently my mesh is only created for the solid part eventhough the locationInMesh is inside the fluid region. I am have tried several things but I always get the wrong results in mesh, region names. I've not got far yet to try layer addition. snappyHexMeshDict: Code:
geometry { fluid_region_name { type triSurfaceMesh; file "domain_fluid.stl"; regions { fluid_inlet { name fluid_inlet_name; } fluid_outlet { name fluid_outlet_name; } wetted_wall_to_fluid { name ww_fluid_name; } } } solid_region_name { type triSurfaceMesh; file "domain_solid.stl"; regions { solid_outer { name solid_outer_name; } solid_xc_inlet { name solid_xc_inlet_name; } solid_xc_outlet { name solid_xc_outlet_name; } wetted_wall_to_solid { name ww_solid_name; } } } } castellatedMeshControls { maxLocalCells 100000; maxGlobalCells 1000000; minRefinementCells 10; maxLoadUnbalance 0.1; nCellsBetweenLevels 2; resolveFeatureAngle 15; allowFreeStandingZoneFaces true; features ( ); refinementSurfaces { fluid_region_name { level ( 1 1 ); regions { fluid_inlet_name { level ( 1 1 ); patchInfo { type patch; } } fluid_outlet_name { level ( 1 1 ); patchInfo { type patch; } } ww_fluid_name { level ( 2 2 ); patchInfo { type wall; } } } } solid_region_name { level ( 1 1 ); regions { solid_outer_name { level ( 1 1 ); patchInfo { type patch; } } solid_xc_inlet_name { level ( 1 1 ); patchInfo { type patch; } } solid_xc_outlet_name { level ( 1 1 ); patchInfo { type patch; } } ww_solid_name { level ( 2 2 ); patchInfo { type patch; } } } } } refinementRegions { } locationInMesh ( 0.1 0 0 ); } Code:
internalFacesOnly true; baffles { baffles1 { type faceZone; zoneName ww_fluid_name; patches { master { name wetted_wall_to_fluid; type mappedWall; sampleMode nearestPatchFace; sampleRegion fluid_region_name; samplePatch wetted_wall_to_solid; } slave { name ww_solid_name; type mappedWall; sampleMode nearestPatchFace; sampleRegion solid_region_name; samplePatch wetted_wall_to_solid; } } } } Any help would be much appreciated. Many thanks, Nakos Last edited by tclph; July 11, 2019 at 05:44. |
|
December 8, 2020, 16:25 |
|
#2 |
New Member
Diego
Join Date: Dec 2020
Posts: 1
Rep Power: 0 |
Hi, were you able of fixing this issue? I am having the same questions right now.
If not, hopefully, some of the pros can take a look at this. Best, Diego |
|
Tags |
chtmultiregionfoam, snapphhexmesh, stl file |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
Problem with chtMultiregionFoam radiation boundary condition | baran_foam | OpenFOAM Running, Solving & CFD | 10 | December 17, 2019 18:36 |
Multi Region Mesh Issues - Star CCM+ | Hammerson99 | STAR-CCM+ | 3 | September 27, 2018 00:25 |
[ANSYS Meshing] Creating a region of fine mesh within 3D fluid domain | raven | ANSYS Meshing & Geometry | 1 | August 13, 2014 12:11 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 10:03 |