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

chtMultiRegionFoam case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2018, 02:15
Default chtMultiRegionFoam case
  #1
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
Hey guys,

I am currently working on a case which I want to solve with the chtMultiRegionFoam solver and I have some questions on how to design my model so that it works without errors.

To my case:
I have a room with 2 cubes in it, 1 opening (inlet) on south side, 1 opening on north side and 1 Opening (outlet) in the ceiling. The cubes are heating the room up (heat source) and later I want to see how the air temperature changes when there is wind coming in (from the domain).


Now I have some questions on how to make this work

First of all the CAD or pre-processing:
As far as I know I have to make multiple STL files. I would have made one for the room, 2 for the cubes. (or should I split the room into floor, walls, ceiling?)
Do I also need to make a STL file of the air in the room and the inlets/outlets? Or will the wind (from the domain) flow right into the room if I just have opening in it?

And some questions to the domain:
I've set up the domain with blockMesh. Now the question is how do I add wind to the domain? And is there also a way to add a temperature to the domain which varies by time? Just like a daily temperature curve.


If there is already another thread with same questions or a solution just let me know. I didn't find one :/
Any help and tip is appreciated


Thanks in advance and keep on foaming guys
Eko is offline   Reply With Quote

Old   January 16, 2018, 02:56
Default
  #2
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
Anone an idea?
Are there good tutorials which I can look at?
Need one with air as fluid and geometry meshed with SHM.
Eko is offline   Reply With Quote

Old   January 16, 2018, 03:19
Default
  #3
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 11
kera is on a distinguished road
Hallo Eko!

I think this should at least get you started with what you are looking for.

Hope it helps!

Regards,
Ricky

Quote:
Originally Posted by Eko View Post
Anone an idea?
Are there good tutorials which I can look at?
Need one with air as fluid and geometry meshed with SHM.
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   January 16, 2018, 03:55
Default
  #4
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
Quote:
Originally Posted by kera View Post
Hallo Eko!

I think this should at least get you started with what you are looking for.

Hope it helps!

Regards,
Ricky
Thanks Ricky but I already did this tutorial and looked at it while setting up my case. It helped me to understand things a little bit better but I don't know how I have to deal with inlet and outlets in my case? Do I have to make stl files for them and define them as inlets? Or can I just assume that wind from the domain will flow into the room when I have an opening in the wall?
Eko is offline   Reply With Quote

Old   January 16, 2018, 05:47
Default
  #5
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 11
kera is on a distinguished road
Have a look into the "incompressible/simpleFoam/motorBike" case, it is a wind tunnel simulation. The mesh is generated using snappyHexMesh with inlet, outlet, walls etc..

Quote:
Originally Posted by Eko View Post


To my case:
I have a room with 2 cubes in it, 1 opening (inlet) on south side, 1 opening on north side and 1 Opening (outlet) in the ceiling. The cubes are heating the room up (heat source) and later I want to see how the air temperature changes when there is wind coming in (from the domain).


Now I have some questions on how to make this work

First of all the CAD or pre-processing:
As far as I know I have to make multiple STL files. I would have made one for the room, 2 for the cubes. (or should I split the room into floor, walls, ceiling?)
Do I also need to make a STL file of the air in the room and the inlets/outlets? Or will the wind (from the domain) flow right into the room if I just have opening in it?
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   January 16, 2018, 11:19
Default
  #6
Senior Member
 
Join Date: Sep 2013
Posts: 353
Rep Power: 20
Bloerb will become famous soon enough
Your domain is fairly simple. Simply try it with blockMesh. One block for cube 1, another one for cube 2, and a few more for the room. Asign each block to a cellZone and split the resulting mesh into the resulting regions.

If you want to do it with snappyHexMesh you can create several stl files or since you only want to use cubes use the existing geometry sources like box.

The tricky part is only how you choose to mesh the regions. You can use one snappyHexMeshDict and mesh all regions at once and again split the mesh afterwards or mesh each region separately.
Bloerb is offline   Reply With Quote

Old   January 17, 2018, 02:00
Default
  #7
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
The case I mentioned in the first post is a very simplified small one. I thought about doing it with blockMesh but want to work with SHM as I need it for my more complicated case later on. I do now have multiple stl files. 1 for the room, 1 for each cube and 1 for the air/fluid in the room.
I would've used splitMeshRegions command after succesfully meshing the geometry with SHM. I tried it out and it seems to work well. Just the geometry isn't where I want it in the domain.

So currently I am setting up and checking all boundaries and trying to get the geometry at the right position.

Quote:
Originally Posted by Bloerb View Post
Your domain is fairly simple. Simply try it with blockMesh. One block for cube 1, another one for cube 2, and a few more for the room. Asign each block to a cellZone and split the resulting mesh into the resulting regions.

If you want to do it with snappyHexMesh you can create several stl files or since you only want to use cubes use the existing geometry sources like box.

The tricky part is only how you choose to mesh the regions. You can use one snappyHexMeshDict and mesh all regions at once and again split the mesh afterwards or mesh each region separately.
Eko is offline   Reply With Quote

Old   January 18, 2018, 10:28
Default
  #8
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
So guys I changed my case a little bit and set up everything. It all works fine until I start the simulation.
It starts solving but then I get this error message:

Quote:
--> FOAM FATAL ERROR:

request for polyMesh Umgebung from objectRegistry Simcht failed
available objects of type polyMesh are

7
(
Air
Building
Block-4
Block-3
Block-2
Block-5
Block-1
)


From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam:olyMesh]
in file /home/pgh/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 239.

FOAM aborting
Does anyone have an idea how to solve this problem? I have the "Umgebung" directory in constant and there is also a polyMesh directory in it. I don't get what this error message is supposed to tell me
Eko is offline   Reply With Quote

Old   January 18, 2018, 12:25
Default
  #9
Member
 
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 11
kera is on a distinguished road
did you declare "Umgebung" in constant/regionProperties under fluid?



Quote:
Originally Posted by Eko View Post
So guys I changed my case a little bit and set up everything. It all works fine until I start the simulation.
It starts solving but then I get this error message:



Does anyone have an idea how to solve this problem? I have the "Umgebung" directory in constant and there is also a polyMesh directory in it. I don't get what this error message is supposed to tell me
__________________
If it is easy, then something is fishy!
kera is offline   Reply With Quote

Old   January 19, 2018, 01:39
Default
  #10
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
Quote:
Originally Posted by kera View Post
did you declare "Umgebung" in constant/regionProperties under fluid?
I was thinking about that all the time but didn't do it.
I will do now and see what happens.

Last edited by Eko; January 19, 2018 at 07:27. Reason: solved
Eko is offline   Reply With Quote

Old   January 22, 2018, 05:31
Default
  #11
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
Simulation is running but I have a new issue. The cubes are heat sources so I made fvOptions files in constant/cube.
But when I start the simulation it doesn't seem to recognize these.
So just to make sure - do the fvOptions file belong in constant or system/cube?

Edit: Problem solved. fvOptions file in constant/region works.

Last edited by Eko; January 24, 2018 at 05:04.
Eko is offline   Reply With Quote

Old   February 7, 2018, 06:16
Default
  #12
Eko
Member
 
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8
Eko is on a distinguished road
Hey guys I once more need your help

I want a wind in my domain with 5 m/s and have no clue how to deal with turbulence.

I am using the k-epsilon model and wanted to ask if anyone knows how to get the right k and epsilon values? Or can I just assume that it is laminar and turn turbulence off?

This is the last step. The simulation runs well with U=0 and laminar

Last edited by Eko; February 8, 2018 at 05:56.
Eko is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, domain, heat source, snappyhexmesh, wind


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
[OpenFOAM] post-processing chtMultiRegionFoam case in paraview? phsieh2005 ParaView 2 July 15, 2016 15:05
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Error reading new case montag dp FLUENT 5 September 15, 2011 06:00
Transient case running with a super computer microfin FLUENT 0 March 31, 2009 11:20
Turbulent Flat Plate Validation Case Jonas Larsson Main CFD Forum 0 April 2, 2004 10:25


All times are GMT -4. The time now is 19:37.