I've been fiddling with it for a very long time! You need to use timeVaryingMappedFixedValue as boundary condition on the inlet of the target case. Look at the pitzDailyExptInlet tutorial (for OF-1.6) for an example. The field is mapped from the data under constant/boundaryData

You have to write a sampleDict to sample the field from the outlet patch of the source case. Choose foamFile as output.
(use the command

Code:

find -name sampleDict

under $WM_PROJECT_DIR/applications to find a commented example)

Give the command

Code:

sample -latestTime

this will produce a new directory named surface.

Eventually, you'll have to modify the coordinates in the file named points to make it agree with the coordinates of the target patch. You can use these values to map the field on your inlet.

I would like to study more in detail the velocity field on a subdomain taken from a converged OF simulation. Since the overall velocity field of the source case influences the inlet velocity of the target domain, I was thinking about sampling data on an inner plane on the source case and use them as the inlet of the target case. Note that mesh and geometry of the target case is different from the source case.

I am able to sample data from the source case using sampleDict and obtaining the wanted surface, but I do not know how to put them on the inlet of the target case.Should I edit the cells coordinates manually as suggested above or is there a faster way to do this mapping? I also guess that mapFields is not an option in my case, since there is not a defined mesh or geometry correspondence between the source and target domain.

Hi Toni,
I do not know what is happening there... I think there is something wrong with your data interpolation on the new face...Why don't you try to sample only some lines on the original mesh and create a sort of interpolation by hand? It worked for me; however I had a pretty simple geometry...

Did you get your case working? With timevaryingmappedfixedvalue, I have also problem, the mapped results does not math the sampled field, even they have the same mesh geometry. It looks also ugly. Can you give me some tips?