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

Problems configuring a case with a converted axisymmetric mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2013, 07:49
Default Problems configuring a case with a converted axisymmetric mesh
  #1
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 12
yash.aesi is on a distinguished road
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.
yash.aesi is offline   Reply With Quote

Old   August 14, 2013, 08:54
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Quote:
Originally Posted by yash.aesi View Post
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 14, 2013, 11:24
Default
  #3
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
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
babakflame is offline   Reply With Quote

Old   August 14, 2013, 14:27
Default
  #4
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 12
yash.aesi is on a distinguished road
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 is offline   Reply With Quote

Old   August 14, 2013, 14:38
Default
  #5
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 12
yash.aesi is on a distinguished road
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
yash.aesi is offline   Reply With Quote

Old   August 14, 2013, 15:58
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Sonu my guess was right,you should set axis type in p file as symmetryPlane not empty if its really symmetryPlane.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 15, 2013, 11:26
Default
  #7
Senior Member
 
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 15
babakflame is on a distinguished road
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
babakflame is offline   Reply With Quote

Old   August 16, 2013, 09:32
Default
  #8
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 12
yash.aesi is on a distinguished road
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
yash.aesi is offline   Reply With Quote

Old   August 16, 2013, 09:39
Default
  #9
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
The usage would be:

Code:
transformPoints -scale '(0.01 0.01 0.01)'
Regards,
Tom
tomf is offline   Reply With Quote

Old   August 16, 2013, 09:42
Default
  #10
Member
 
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 12
yash.aesi is on a distinguished road
thanks a lot Tom i will try with this .....
yash.aesi is offline   Reply With Quote

Old   August 16, 2013, 12:56
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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

Last edited by wyldckat; August 18, 2013 at 10:34. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Problems converting a Fluent case file McFly OpenFOAM Meshing & Mesh Conversion 12 July 21, 2019 21:02
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09


All times are GMT -4. The time now is 23:35.