CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   patching the inlet field from a file (https://www.cfd-online.com/Forums/openfoam/68620-patching-inlet-field-file.html)

vishwa September 25, 2009 15:49

patching the inlet field from a file
 
Hi,
I had posted a thread this morning regarding the same..but I am not sure if I explained myself clearly..

I ran a simpleFoam simulation on a rectangular channel. the flow is laminar.. I was able to include a file sampleDict in the system folder, which basically saved the velocity fields at the outlet of the channel. I am including that for the reference..

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.5                                  |
|  \\  /    A nd          | Web:      http://www.OpenFOAM.org              |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cellPoint;

setFormat raw;

surfaceFormat    foamFile;

sets ();

surfaces   
(
    _left
    {
    type patch;
   
    patchName outlet_left;

        /*name      plate;
        basePoint (0 0 0.25);
        normalVector (0 0 1);*/
    }
);

fields       
(
    U
);

// ************************************************************************* //

Now I have to start another simulation in a reactor..I need to using the velocity field that i save using the above procedure as the inlet bc..Could anybody please explain how that is done in openfoam..

Regards,
vishwa


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