CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Mapping outlet patch to inlet patch of new case (http://www.cfd-online.com/Forums/openfoam/85167-mapping-outlet-patch-inlet-patch-new-case.html)

val46 February 18, 2011 11:22

Mapping outlet patch to inlet patch of new case
 
2 Attachment(s)
Hello,

I'm trying to run a case with a velocity profile (on the inlet patch) that comes from a previous simulation.
I have a rectangular channel where inlet and outlet have different meshes.
It's a problem that has been discussed here in the forum many times before. Unfortunately I couldn't find a solution for it yet.

First thing is mapfields
I think it's not the right tool because it maps the volume field and not only the surface field.

Second thing is sample + timeVaryingMappedFixedValue
I was able to sample the velocity field from the outlet patch of the previous run with the sample tool.
But obviously I'm doing something wrong when using timeVaryingMappedFixedValue.
The interpolation onto the new inlet patch looks horrible (see attached picture).

Any hints about what I'm doing wrong?

This is my sampleDict file:
Code:

setFormat raw;

surfaceFormat foamFile;

interpolationScheme cell;

fields
(
    U
);

surfaces
(
    newINLET
    {
        type            patch;
        patchName      OUTLET;
    }

And in 0/U I have:
Code:

INLET
    {
    type        timeVaryingMappedFixedValue;
    setAverage    off;
    }

Regards,
Toni


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