CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

patching the inlet field from a file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 25, 2009, 15:49
Default patching the inlet field from a file
  #1
Member
 
vishwanath somashekar
Join Date: Apr 2009
Posts: 41
Rep Power: 8
vishwa is on a distinguished road
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
vishwa is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
ParaView 33 canbt open OpenFoam file hariya03 OpenFOAM Paraview & paraFoam 7 September 25, 2008 17:33
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 15:49
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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