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

Using calculated outlet values in another case by using mapFields

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2013, 10:58
Default Using calculated outlet values in another case by using mapFields
  #1
New Member
 
hghfhg
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: 21
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: 118
Rep Power: 16
cfdonline2mohsen is on a distinguished road
Dear Ben
Have a look at the following post:
http://www.cfd-online.com/Forums/ope...-0-folder.html
__________________
“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
 
hghfhg
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
Dear Ben
Have a look at the following post:
http://www.cfd-online.com/Forums/ope...-0-folder.html
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: 21
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


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
dsmcFoam setup hherbol OpenFOAM Pre-Processing 1 November 19, 2021 01:52
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
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 10:49


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