CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Using calculated outlet values in another case by using mapFields

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

Like Tree3Likes
  • 2 Post By Imadori
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Display Modes
Old   August 14, 2013, 10:58
Default Using calculated outlet values in another case by using mapFields
  #1
New Member
 
Ben
Join Date: Aug 2013
Posts: 2
Rep Power: 0
Imadori is on a distinguished road
Hello everyone,
I know this must have been asked countless times, but as I'm quite new to openfoam and never really got the gist of it, I haven't been able to get my case working up until now, even after reading several threads and suggestions in these forums.

I'm trying to use the outlet, i.e. a fully developed velocity profile and other values, of a simple calculated case as an inlet of another one (on openfoam 1.7, turbulent flow at Re=200k) in order to reduce computational time. The use of mapFields seemed the easiest way to do so. However, I read that I had to use the directMapped boundary condition. My question is, how to do so? I somehow doubt that just renaming some patches in the "boundary" file from "patch" to "directMappedPatch" will work. Even so, would I have to rename just the inlet patch from the second case or the outlet from the first one as well?
I know it's much to ask, but if somebody had a brief step-by-step guide, I would be very happy to hear it.
Thanks a lot!
bmikuz and ScarFace like this.
Imadori is offline   Reply With Quote

Old   August 14, 2013, 11:27
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
I am not sure if your understanding of the directMappedPatch (mappedPatch in 2.x.x) is correct. With the directMappedPatch, you can not map the field of another case, but you map the field from the internal field of the present run to the inlet.

Is you inlet data transient or steady state?
ScarFace likes this.
Bernhard is offline   Reply With Quote

Old   August 15, 2013, 06:21
Default
  #3
Senior Member
 
cfdonline2mohsen's Avatar
 
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 117
Rep Power: 7
cfdonline2mohsen is on a distinguished road
Dear Ben
Have a look at the following post:
setting the correct format of nonuniform List<vector> for inlet in 0 Folder
__________________
“If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.”
cfdonline2mohsen is offline   Reply With Quote

Old   August 19, 2013, 11:25
Default
  #4
New Member
 
Ben
Join Date: Aug 2013
Posts: 2
Rep Power: 0
Imadori is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
I am not sure if your understanding of the directMappedPatch (mappedPatch in 2.x.x) is correct. With the directMappedPatch, you can not map the field of another case, but you map the field from the internal field of the present run to the inlet.

Is you inlet data transient or steady state?
My data is steady state.
So I can't connect two different cases with a directMappedPatch? I thought I read about that, hence my question. Here's an example of directMapped-usage, maybe I misunderstood something: http://http://www.cfd-online.com/Forums/openfoam/75434-mapping-boundary-conditions-another-case.html

Quote:
Originally Posted by cfdonline2mohsen
Thanks a lot, I will give it a try!
In my 0/U-file it says "value uniform (x x x)" at the inlet, though. I hope this won't pose a problem when simply replacing it with "value nonuniform List<vector>".
Imadori is offline   Reply With Quote

Old   August 19, 2013, 11:30
Default
  #5
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
If you read the posts in the linked thread, there is no mapping from another case going on, but from within the case, as I explained above.

If your data is steady state, then there is no need to do anything special, and you can give the non-uniform list as a boundary condition. This replacement should work. However, be sure to check the result, as the numbering of the face is pretty crucial.
Bernhard is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Initialise my LES case using my RANS case is there any utility for it ? Alhasan OpenFOAM Running, Solving & CFD 2 May 10, 2014 00:14
dsmcFoam setup hherbol OpenFOAM Pre-Processing 0 July 14, 2013 17:16
mapFields between two differents solvers Yunilo OpenFOAM Pre-Processing 3 June 16, 2013 11:51
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
Impinging Jet. Outlet Boundary Condition Vincent Main CFD Forum 0 December 16, 2003 11:49


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