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

extrude2DMesh does not work !

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

Like Tree1Likes
  • 1 Post By l_r_mcglashan

Reply
 
LinkBack Thread Tools Display Modes
Old   July 5, 2013, 10:12
Default extrude2DMesh does not work !
  #1
ooo
Member
 
Join Date: Feb 2012
Posts: 49
Rep Power: 5
ooo is on a distinguished road
Hi

I've converted a 2d mesh from a commercial software to openfoam and now i want to convert it to a 3d mesh(2d with 1 layer in z direction).
I did the same correctly some months ago with openfoam 2.1 but now for 2.2 it does not work.
When i use the command " extrude2DMesh 0.01" i get the error :
----------------------------------------
--> FOAM FATAL ERROR:
0.01 not found in table. Valid entries:
2
(
MeshedSurface
polyMesh2D
)


From function HashTable<T, Key, Hash>:perator[](const Key&) const

-----------------------------------------
I used all formats e.g extrude2DMesh '0.01' and .... but none of the work.
I would appreciate any idea.
ooo is offline   Reply With Quote

Old   July 5, 2013, 10:40
Default
  #2
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
You need this dictionary in your system/ folder:

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

extrudeModel        linearDirection;

patchType           empty;

nLayers             1;

expansionRatio      1.0;

linearDirectionCoeffs
{
    direction       (0 0 1);
    thickness       0.01;
}
and run either:

extrude2DMesh MeshedSurface

or

extrude2DMesh polyMesh2D

Depending on whether your initial mesh is a meshed surface or a 2D polyMesh
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   July 5, 2013, 11:06
Default
  #3
ooo
Member
 
Join Date: Feb 2012
Posts: 49
Rep Power: 5
ooo is on a distinguished road
Quote:
Originally Posted by l_r_mcglashan View Post
You need this dictionary in your system/ folder:

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

extrudeModel        linearDirection;

patchType           empty;

nLayers             1;

expansionRatio      1.0;

linearDirectionCoeffs
{
    direction       (0 0 1);
    thickness       0.01;
}
and run either:

extrude2DMesh MeshedSurface

or

extrude2DMesh polyMesh2D

Depending on whether your initial mesh is a meshed surface or a 2D polyMesh
Thank you for your answer.
Would you please tell me how i should compile this code into my system folder?
Also , This is because of the new version of openFoam?because in the previous version i just used extrude2DMesh command.
Thank you in advance.
ooo is offline   Reply With Quote

Old   July 5, 2013, 11:19
Default
  #4
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
You don't compile anything, just put that in the system/ folder of your case directory.

Yes, extrude2DMesh changed to include more functionality.
ooo likes this.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan 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
How to work with constant pressure? Martin CD-adapco 2 February 25, 2009 14:23
Getting FoamX to work shaun OpenFOAM Installation 12 March 23, 2007 09:55
work related to brake study of a vehical aero CD-adapco 3 November 23, 2006 08:43
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 12:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 21:03


All times are GMT -4. The time now is 10:54.