CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to build zones in foam-extend 4.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2017, 14:37
Default how to build zones in foam-extend 4.0
  #1
rsa
New Member
 
Reza
Join Date: Jun 2012
Posts: 25
Rep Power: 12
rsa is on a distinguished road
Hi,

I am wondering if anyone can tell me what is the equivalent of topoSet in foam-extend 4.0

in OF using topoSet, I can set "zones" in the mesh with assigned names where latter I can search for those zones by name in a modified solver. Basically, what I want to do is to define a volScalarField variable in the createField and then initialize it to a certain value for the zone(s) generated by topoSet and zero every where else. I know how to do this using topoSet in OF but as I noticed there is no topoSet in fe40.
I found setField which if I put "myVar" the variable I want to initialize in the 0-directory then it will return a non-uniform field using setField but I could not read the "myVar" into "myVar" that I defined in createFields.H

Thanks.
rsa is offline   Reply With Quote

Old   November 4, 2017, 02:52
Default In place of TopoSet
  #2
New Member
 
Denys Wickens
Join Date: Jan 2017
Posts: 7
Rep Power: 8
DenysW is on a distinguished road
I found the same problem, but in my case due to wanting to use topoSet ahead of createBaffles to general zero-thickness baffles on internal boundaries between blocks.

Exporting to Fluent using foamMeshToFluent in openFoam 1706 followed by fluent3DMeshToFoam in foam-extend 4.0 worked for the mesh. Then there was some minor messing around with boundary conditions to use ones foam-extend recognised/liked. Then it ran.
DenysW is offline   Reply With Quote

Old   June 25, 2022, 17:01
Default
  #3
New Member
 
Join Date: Apr 2022
Posts: 8
Rep Power: 2
aeronerd is on a distinguished road
This is an old thread, but I am still struggling to establish face zones to create a GGI interface in FE4.1

I even tried to make the zones in OF, and then bring the zone definition files over and FE4.1 didn't recognize them...

I'm starting with a salome mesh (which runs), but can't establish cyclicGGI boundaries to get things going.

I can't find a manual or wiki entry that describes GGI either. I feel I could figure it out with even a little official information
aeronerd is offline   Reply With Quote

Old   June 25, 2022, 23:37
Default
  #4
New Member
 
Join Date: Apr 2022
Posts: 8
Rep Power: 2
aeronerd is on a distinguished road
To answer my own question for the sake of helping others, a function external to setSet in FE4.1 called "setsToZones" did what I needed.

generate sets through FE4.1's setSet, and then convert them to face zones with setsToZones -noFlipMap.

That was about 2 hours of my life :/

Last edited by aeronerd; June 26, 2022 at 17:27.
aeronerd is offline   Reply With Quote

Old   July 2, 2022, 13:20
Default
  #5
Member
 
Wolfram Schneider
Join Date: Jan 2018
Location: Germany
Posts: 57
Rep Power: 7
Wolfram is on a distinguished road
Hi aeronerd,

I did not get exactly how you used the setSet utility.

Right now I am facing the same Issue:
Created the mesh with salome but I am not able to assign cellSet to use them as MRFZone

Could you please give me a hint?

Best wishes
Wolfram is offline   Reply With Quote

Old   July 2, 2022, 13:34
Default
  #6
New Member
 
Join Date: Apr 2022
Posts: 8
Rep Power: 2
aeronerd is on a distinguished road
I first created a cellSet using the function setSet. You then quit the setSet prompt and run the command line function called "setsToZones" which will convert all your established cellSets to cellZones.
aeronerd is offline   Reply With Quote

Old   July 3, 2022, 02:42
Default
  #7
Member
 
Wolfram Schneider
Join Date: Jan 2018
Location: Germany
Posts: 57
Rep Power: 7
Wolfram is on a distinguished road
Quote:
Originally Posted by aeronerd View Post
I first created a cellSet using the function setSet. You then quit the setSet prompt and run the command line function called "setsToZones" which will convert all your established cellSets to cellZones.
yap, understood. In my mesh, since it is meshed with Salome, I have two regions. In OpenFoamv2012 I used "checkMesh" in order to assign the two regions and afterwards I use the setSet functionality.
I am stuck in assigning these two regions in order to use them in setSet
Wolfram is offline   Reply With Quote

Old   July 3, 2022, 03:51
Default
  #8
New Member
 
Join Date: Apr 2022
Posts: 8
Rep Power: 2
aeronerd is on a distinguished road
I am in fact doing MRF with a dual region mesh made in salome right now

I don't think this is the best way to do it....... but I linked the region boundaries with a cyclicAMI boundary, and just set the rotating region cell zone as the MRF rotating zone.

It's running, but I think the cyclicAMI boundary between rotating and stationary regions is entirely unnecessary for a smarter person.
aeronerd is offline   Reply With Quote

Old   July 4, 2022, 02:26
Default
  #9
Member
 
Wolfram Schneider
Join Date: Jan 2018
Location: Germany
Posts: 57
Rep Power: 7
Wolfram is on a distinguished road
Quote:
Originally Posted by aeronerd View Post
I am in fact doing MRF with a dual region mesh made in salome right now

I don't think this is the best way to do it....... but I linked the region boundaries with a cyclicAMI boundary, and just set the rotating region cell zone as the MRF rotating zone.

It's running, but I think the cyclicAMI boundary between rotating and stationary regions is entirely unnecessary for a smarter person.

First of all, many thanks for your help so far! Meanwhile I found a solution for my purpose ...

1. create the mesh in separate directories. For example /rotor/ and /stator/
2. merge the mesh with "mergeMeshes"
3. split the regions and let OpenFoam "create" the cell-zones in the merged mesh with "splitMeshRegions" -makeCellZones -overwrite"
4. use the setSet functionality and set for example the region0 to the rotor region with "cellSet rotor new setToCell region0"

Maybe this is not elegant but it works for me ...


How does this "dual region mesh" work with salome?

Best wishes
Wolfram is offline   Reply With Quote

Reply

Tags
createfields.h, foam-extend-4.0, setfield, toposet, zone

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06


All times are GMT -4. The time now is 09:07.