CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Problems configuring a case with a converted axisymmetric mesh (https://www.cfd-online.com/Forums/openfoam-pre-processing/122312-problems-configuring-case-converted-axisymmetric-mesh.html)

yash.aesi August 14, 2013 07:49

Problems configuring a case with a converted axisymmetric mesh
 
helo bobi ,
i converted my 2D axisymmetry fluent mesh into OF and then changed the 0 folder according to my values also i checked mesh with checkmesh command its ok but when i tried to run it run it is giving me following error , can you please help me how to overcome from this error ?

FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type symmetryPlane and patchField type empty

file: /home/yash/OpenFOAM/yash-2.2.0/run/tutorials/compressible/rhoCentralFoam/exsercisePrb/0/p.boundaryField.Axis from line 39 to line 39.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 165.

immortality August 14, 2013 08:54

Quote:

Originally Posted by yash.aesi (Post 445674)
helo bobi ,
i converted my 2D axisymmetry fluent mesh into OF and then changed the 0 folder according to my values also i checked mesh with checkmesh command its ok but when i tried to run it run it is giving me following error , can you please help me how to overcome from this error ?

FOAM FATAL IO ERROR:
inconsistent patch and patchField types for
patch type symmetryPlane and patchField type empty

file: /home/yash/OpenFOAM/yash-2.2.0/run/tutorials/compressible/rhoCentralFoam/exsercisePrb/0/p.boundaryField.Axis from line 39 to line 39.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 165.

Hi
attach your p file here.

babakflame August 14, 2013 11:24

Hi

It seems that you have problem with your patch type definition. In the tutorial Tobi has defined a wedge typed mesh and has set consistent pressure types for different patch types. your problem is a tiny one. Just take a deeper look into the defined patch types in Tobi tutorial. Although my suggestion is making a wedge-typed mesh instead of a plane.

Good Luck
Bobi

yash.aesi August 14, 2013 14:27

here is my p file of 0 folder please have a look ....

/*--------------------------------*- 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 volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 101325;

boundaryField
{
fuel_inlet
{
type zeroGradient;
}

coflow_inlet
{
type zeroGradient;
}

Outlet
{
type zeroGradient;
}
Axis
{
type empty;
}
Upperwall
{
type zeroGradient;
}

frontAndBack
{
type empty;
}
}

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

yash.aesi August 14, 2013 14:38

helo bobi ,
In my boundary file under polymesh (constant ), the axis is defined as the symmetric plane after my geometry conversion . Now should i write same symmetric plane in each variables in the 0 file for the axis .
thanks alot for your cont. help :)

immortality August 14, 2013 15:58

Sonu my guess was right,you should set axis type in p file as symmetryPlane not empty if its really symmetryPlane.

babakflame August 15, 2013 11:26

Hi Sonu

As ehsan has hinted; the types of boundaries in boundary file , even the names (upper letters or not) must be the same as what you set for
flow variables as like pressure. Although I think you have solved it by now.

Bobi

yash.aesi August 16, 2013 09:32

helo bobi,
actually my mesh is in cm and now i think i need to convert it into m , so as per my knowledge i have to use command transformPoints '(0.01 0.01 0.01)' but when i am giving this command then its giving the error :

Usage: transformPoints [OPTIONS]
options:
-case <dir> specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-parallel run in parallel
-region <name> specify alternative mesh region
-rollPitchYaw <vector>
transform in terms of '(roll pitch yaw)' in degrees
-roots <(dir1 .. dirN)>
slave root directories for distributed running
-rotate <(vectorA vectorB)>
transform in terms of a rotation between <vectorA> and
<vectorB> - eg, '( (1 0 0) (0 0 1) )'
-rotateFields read and transform vector and tensor fields too
-scale <vector> scale by the specified amount - eg, '(0.001 0.001 0.001)'
for a uniform [mm] to [m] scaling
-translate <vector>
translate by the specified <vector> - eg, '(1 0 0)'
-yawPitchRoll <vector>
transform in terms of '(yaw pitch roll)' in degrees
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-2.2.0 (see www.OpenFOAM.org)
Build: 2.2.0-b363e8d14789



--> FOAM FATAL ERROR:
Wrong number of arguments, expected 0 found 1

can you please tell me whats wrong here ?? thanks a lot for your continuous help :)

tomf August 16, 2013 09:39

The usage would be:

Code:

transformPoints -scale '(0.01 0.01 0.01)'
Regards,
Tom

yash.aesi August 16, 2013 09:42

thanks a lot Tom i will try with this .....:)

wyldckat August 16, 2013 12:56

FYI: Given that the topic of questions had changed from the original thread http://www.cfd-online.com/Forums/ope...tml#post445613 (from right after the post #208), I've moved the posts above to this new thread you are currently reading.

edit: and moved the question about rhoCentralFoam to here: http://www.cfd-online.com/Forums/ope...ntralfoam.html


All times are GMT -4. The time now is 11:31.