|
[Sponsors] |
[Gmsh] Not able to create interface using Gmsh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2024, 02:17 |
Not able to create interface using Gmsh
|
#1 |
New Member
PA
Join Date: Feb 2024
Posts: 1
Rep Power: 0 |
Hello Foamers
I have been trying to create a multi-region simulation that consists of inner walls and baffles. I am using Gmsh and after creating my 3D mesh with desired volumes and surfaces, when I import it in openFoam (by converting the mesh) and split the mesh into regions, I only get the outside wall as an interface but the inner baffles are not present/recognized. Here's the 2D drawing of my test case: Code:
------------------------------ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Water | | | ------------------ | | Soil | ------------------------------ Here's the code for Gmsh Code:
// Gmsh project created on Mon Feb 26 12:28:25 2024 SetFactory("OpenCASCADE"); //+ Box(1) = {0, 0, 0, 1.5, 1, 2}; //+ Box(2) = {0.5, 0.25, 0.5, 0.5, 0.5, 1.5}; //+ Rectangle(13) = {0, 0, 0.05, 1, 0.5, 0}; //+ //+ Rotate {{0, 1, 0}, {0, 1, 0}, -Pi/2} { Surface{13}; } //+ Translate {0.8, 0.25, 1} { Surface{13}; } //+ b() = BooleanFragments{ Volume{1}; Delete; }{ Surface{7,11,9,10,8}; Delete; }; //+ c() = BooleanFragments{ Volume{2}; Delete; }{ Surface{13}; Delete; }; //+ Coherence; //+ Physical Volume("soil", 45) = {3}; //+ Physical Volume("water", 46) = {2}; //+ Physical Surface("inlet", 47) = {13}; //+ Physical Surface("outlet", 48) = {15}; //+ Physical Surface("metal", 49) = {8, 14, 7, 12, 11, 16}; //+ Physical Surface("wall", 50) = {22, 20, 19, 17, 18, 21}; Code:
gmshToFoam Model.msh Code:
splitMeshRegions -cellZones What am I missing? Or what else can I do to include the baffle? |
|
Tags |
cht modelling, gmsh, meshing, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |
[GAMBIT] How to plot S pipe | mariam.sara | ANSYS Meshing & Geometry | 36 | November 7, 2013 16:22 |
Actuator disk model | audrich | FLUENT | 0 | September 21, 2009 08:06 |