|
[Sponsors] |
Using calculated outlet values in another case by using mapFields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 14, 2013, 10:58 |
Using calculated outlet values in another case by using mapFields
|
#1 |
New Member
hghfhg
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
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! |
|
August 14, 2013, 11:27 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
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? |
|
August 15, 2013, 06:21 |
|
#3 |
Senior Member
Mohsen KiaMansouri
Join Date: Jan 2010
Location: CFD Lab
Posts: 118
Rep Power: 16 |
__________________
“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.” |
|
August 19, 2013, 11:25 |
|
#4 | ||
New Member
hghfhg
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
Quote:
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:
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>". |
|||
August 19, 2013, 11:30 |
|
#5 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
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. |
|
|
|
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 |