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

[Other] 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 Search this Thread Display Modes
Old   July 5, 2013, 10:12
Default extrude2DMesh does not work !
  #1
ooo
Member
 
Join Date: Feb 2012
Posts: 49
Rep Power: 10
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: 19
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: 10
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: 19
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RP_Set_Integer does not work in parallel 86lolo Fluent UDF and Scheme Programming 2 July 3, 2014 11:37
Does CX_Interpret_String work in parallel? 86lolo Fluent UDF and Scheme Programming 2 June 30, 2014 04:36
Companies that lease software & hardware for cloud-based work? Catthan ANSYS 0 June 18, 2014 10:53
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 01:34.