|
[Sponsors] |
the internalField entry of U file is not valid in pisoFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 24, 2013, 05:32 |
the internalField entry of U file is not valid in pisoFoam
|
#1 |
Member
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13 |
i was solving a 3-D cylinder flow case with pisoFoam.
the internalField entry of 0/U file was set to uniform (1 0 0). however, the preview of 0s showed that the internalField entry failed to work. the U value of internalField remained to (0 0 0), see the figure below. QQ??20131124164122.jpg boundary Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class polyBoundaryMesh; location "constant/polyMesh"; object boundary; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 4 ( inlet { type patch; nFaces 1920; startFace 1747920; } outlet { type patch; nFaces 1920; startFace 1746000; } cylinder { type wall; nFaces 3840; startFace 1742160; } fb { type wall; nFaces 36000; startFace 1706160; } ) // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (1 0 0); boundaryField { inlet { type freestream; freestreamValue $internalField; } outlet { type freestream; freestreamValue $internalField; } cylinder { type fixedValue; value uniform (0 0 0); } fb { type fixedValue; value uniform (0 0 0); } } // ************************************************************************* // thanks in advance. |
|
November 24, 2013, 07:56 |
|
#3 | |
Member
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13 |
Quote:
My computational domain is a circular cylinder. Inlet patch is on the left hand, and outlet patch is on the other side. Is there anything wrong about the boundary condition? The similar geometry was used in a 2-D case with icoFoam. And internalField entry of U file worked. shuoxue |
||
November 24, 2013, 08:05 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Do you have another file in 0/ which has the "object U" entry? E.g. a file U.org?
Note that since you are looking at the 0-folder, this has absolutely nothing to do with icoFoam or pisoFoam. The solver haven't touched your files yet.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
November 24, 2013, 22:11 |
|
#5 | |
Member
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13 |
Quote:
U_Clip_0s.jpg |
||
November 25, 2013, 05:05 |
|
#6 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
The transition layer is probably only there because you chose to view point-interpolated field values in paraview.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
[Other] OpenFOAM Installation for navalFoam | sachinlb | OpenFOAM Community Contributions | 22 | July 28, 2017 06:26 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
[swak4Foam] swak4Foam-groovyBC build problem | zxj160 | OpenFOAM Community Contributions | 18 | July 30, 2013 14:14 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |