CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to Map Fields in openFOAM using the utility (https://www.cfd-online.com/Forums/openfoam-solving/119231-how-map-fields-openfoam-using-utility.html)

lethu June 23, 2017 05:40

Hello everyone,

I have been encountering problems with mapFields.

I have posted my problems here :
https://www.cfd-online.com/Forums/op...r-channel.html

My new domain is smaller than the previous one. My new inlet and outlet are at the same position but they are cut. As I explained, the first simulation was using interFoam, the second simulation I want to carry is only using the water part.

If anyone know why mapFields does not want to map the U field, please tell me why. Thanks !

EDIT : Problem solved using reconstructPar !

hoemmaria January 13, 2018 07:45

Mapping a time series
 
Hi!

Using the information found in this thread I have successfully mapped a solution from a fine mesh over to a coarser mesh.
However, my problem is transient, and thus I would like to map several time steps to the coarser case.

An example: I want to map the time steps 0.5-1 s.
I tried putting startTime in the target case as 0.5 and having the endTime as 1. But when I ran mapFields ../sourceCase -consistent I only got the time step folder for 0.5 in the target case.
So far I have only been able to map one time step at the time which is a very slow way of getting where I want.

Does anyone know how to map several time steps at once?

Kind regards,
Maria

sisetrun January 15, 2018 08:52

Hello Maria,

You can map the 0.5 by typing

Code:

mapFields -sourceTime 0.5 ../sourceCase
in your target Case!


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