CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Using calculated outlet values in another case by using mapFields (http://www.cfd-online.com/Forums/openfoam/122211-using-calculated-outlet-values-another-case-using-mapfields.html)

Imadori August 14, 2013 10:58

Using calculated outlet values in another case by using mapFields
 
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!

Bernhard August 14, 2013 11:27

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?

cfdonline2mohsen August 15, 2013 06:21

Dear Ben
Have a look at the following post:
http://www.cfd-online.com/Forums/ope...-0-folder.html

Imadori August 19, 2013 11:25

Quote:

Originally Posted by Bernhard (Post 445750)
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>".

Bernhard August 19, 2013 11:30

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.


All times are GMT -4. The time now is 13:25.