CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] How to create the mesh for few geometry and give names to the specific names ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2024, 10:52
Default How to create the mesh for few geometry and give names to the specific names ?
  #1
New Member
 
Yang Wenhao
Join Date: Mar 2024
Posts: 2
Rep Power: 0
Crucaius is on a distinguished road
I can create the geometry and mesh in Mesh of Ansys and give name selections to specific faces for one case. And then convert the mesh file into OpenFOAM and do the simulations.
I'm wondering what if I want to repeat the whole process to many geometry with slightly different parameters, such as channel length and width.
Surely, it will waste a lot of time for repeating the similar process with my mouse clicking the screen.
Is there any way to do the iteration of creating the mesh and naming the faces by script in some software ?
Crucaius is offline   Reply With Quote

Old   March 25, 2024, 00:16
Smile it's possible but . . .
  #2
New Member
 
Amirreza
Join Date: Mar 2020
Posts: 17
Rep Power: 6
arezayan87 is on a distinguished road
Hey,

the question is very general and it might have different answers case by case.
i's better to define your case, what is the geometry and what you need to do exactly.

for example if you want to make several single cubes that are different in their heights, i's easy to write a bash script creating a blockMeshdict in each step, name the patches and the go to the next step.

best regards,
Amirreza
arezayan87 is offline   Reply With Quote

Old   March 25, 2024, 01:15
Default
  #3
New Member
 
Yang Wenhao
Join Date: Mar 2024
Posts: 2
Rep Power: 0
Crucaius is on a distinguished road
Dear arezayan87,
Thank you so much for your reply.
My geometry is a plate with different channels and circles, which all region shoule be considered as fluids.
Here is the link of picture for the geometry.

link: https://pan.baidu.com/s/1m5mR61fuuq0...38mDQ?pwd=1qru
code: 1qru

The potential geometry will include more channels and circles.
Thank you so much.
Crucaius is offline   Reply With Quote

Reply

Tags
export the mesh by script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] snappyHexMesh stuck when snap is turned on yukuns OpenFOAM Meshing & Mesh Conversion 3 February 2, 2021 13:05
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
SonicFoam tuto nacaAirfoil steadystate Dorian1504 OpenFOAM Running, Solving & CFD 10 October 11, 2017 17:05
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 10:09


All times are GMT -4. The time now is 12:55.