|
[Sponsors] |
July 5, 2013, 11:12 |
extrude2DMesh does not work !
|
#1 |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
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. |
|
July 5, 2013, 11:40 |
|
#2 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
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; } extrude2DMesh MeshedSurface or extrude2DMesh polyMesh2D Depending on whether your initial mesh is a meshed surface or a 2D polyMesh
__________________
Laurence R. McGlashan :: Website |
|
July 5, 2013, 12:06 |
|
#3 | |
Member
Join Date: Feb 2012
Posts: 49
Rep Power: 14 |
Quote:
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. |
||
July 5, 2013, 12:19 |
|
#4 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
You don't compile anything, just put that in the system/ folder of your case directory.
Yes, extrude2DMesh changed to include more functionality.
__________________
Laurence R. McGlashan :: Website |
|
|
|
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 12:37 |
Does CX_Interpret_String work in parallel? | 86lolo | Fluent UDF and Scheme Programming | 2 | June 30, 2014 05:36 |
Companies that lease software & hardware for cloud-based work? | Catthan | ANSYS | 0 | June 18, 2014 11:53 |
Why do the Plant library cases don't work? | Alumna | Phoenics | 6 | June 22, 2004 13:08 |
why my In-Form doesn't work? | green | Phoenics | 2 | May 27, 2004 22:03 |