|
[Sponsors] |
May 2, 2011, 13:32 |
|
#21 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
hi,
i am using sHM just for complex geometrys with good results. never meshed in Salome befor ... the tutorials ? thats a good idea, where did i get those tutorials ? regards tobi,... PS: sure, you get 3D-geometrys but if you got just one cell in the z-direction you can use the empty patch, ... but i know what you wanna say to me I 've found the tutorials - thx for that advice |
|
May 2, 2011, 13:43 |
|
#22 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
I linked the tutorials I refer to in the previous post. OK, you know empty patches, but you didn't create an appropriate 3D mesh in SALOME. For your purposes, you must apply a 3D algorithm on a solid or generate a 2D mesh and then extrude it. Otherwise you can't convert anything.
|
|
May 2, 2011, 13:56 |
|
#23 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
okay thx.
i always using Catia V5 and convert it to an STL ... split it into the boundarys in Salome and mesh it with sHM. So thx for your advice. I wll have a look at the tutorials. nice evening, tobi |
|
May 11, 2012, 15:58 |
|
#25 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
Geometry creation: #G1 In geometry module it is possible to define the airfoil via polynomial equations: New entity - Basic - Curve - Analytical and then enter the polynomial for the NACA00xx like the one described here: http://en.wikipedia.org/wiki/NACA_airfoil This creates the single side of the NACA00xx profile, the other side you can mirror, or multiply the polynomial with -1. #G2 From the two polynomial curves, create a wire. #G3 From the wire, create a face. #G4 Create a circle that encompasses the airfoil face. #G5 Create a frace from this circle. #G6 Cut the circle face with the polynomial face to get the basis for the mesh: NACA0015-CircleCut in the .hdf file. Then I've tried to generate the mesh in 2 ways: M1 : extrusion of a planar mesh #M1.1 Mesh NACA0015-CircleCut to create a planar triangular mesh. #M1.2. Extrude the mesh #M1.3 Filter based selection of face groups: There are filters now in the new version of Salome which can be superimposed. They may be based on various criteria (parametric, relationships with other geometry, and similar). Example of selecting the inletOutlet group using filters: Mesh -> Create Group -> Filter Based For a filter, if you select the Geometry to be Quadrangle, and add another filter (plus button to the right with logical AND option for the composition of filters) that states that the faces are Free faces, the result is the ring of quadrangle faces that define the inletOutlet patch. The empty patches and the airfoil have their own settings, check them out with right click to the group, and edit. #M1.4 Once this is done (the groups are there, and the mesh is extruded), I export to .unv, and see the same error you had. M2 Three dimensional extrusion algorithm, on a 3D extruded geometry #M2.1 This procedure is different from M1 in the fact that extruded geometry is produced first by extruding NACA0015-CircleCut. #M2.2 Explosion of extruded geometry into faces: unfortunately, with analytical function that represents the polynomial, if it is linear interpolated between the points, this results with like 1000 faces. I've grouped the faces that will be used for quadrangle mapping and triangle meshing. #M2.3. Create mesh on extruded geometry: 3D Extrusion algorithm #M2.4 Create submesh: extruded ring (inletOutlet of the previous mesh) is submeshed with Quadrangle (mapping) and no hypothesis is set. #M2.5 Create submesh: 2D Projection algorithm on two triangle faces (create .hdf) M2 results in an algorithm faliure. The procedure is explained for a simpler geometry here: http://www.caelinux.org/wiki/index.p...ELinux_2008.29 Obviously, I'm breaking my back here .... if anyone can tell me where I did a wrong step, it would be great! I couldn't attach the .hdf because of its size, here is where you can download it: http://www.2shared.com/file/3Yn6lIHI/NACA0015.html |
||
May 14, 2012, 13:55 |
|
#26 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
hi,
i have had a look at your file and tried a bit. Would you like to have a 2D mesh with hexaedrals? Well I think its not as simple as in ANSYS. I meshed a lot of geometrys with salome using hexaedrals but thats not easy with your geometry couse salome always wants to have "a box with four lines" to create the hexaedrals (like in Ansys cfx mesher)... well, i think you are not able to make a 2D mesh with tetraedrals. The problem is, that your airfoil has a lot of lines. Every line have to enclose a box with four lines (hope you understand me). Tobi |
|
May 15, 2012, 08:33 |
|
#27 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
thanks a lot for your advice... I've used an .igs/.brep CAD model of an airfoil, and then the algorithm worked properly... I'll upload the .hdf again as soon as I get to my home PC. It would be great to have a structured NACA0015 airfoil mesh if you can spare one, because of the drag coefficients computation as well... Thanks again, Tomislav |
||
May 16, 2012, 03:19 |
|
#28 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
ufff i was a bit confused
First of all. If I mention 2D - mesh I mean a 3D mesh with one cell in one directory so you can use empty patches to do like a 2D mesh. You are creating a planar 2D triangular mesh and then you wanted to extrude it to a 3D mesh using 1 cell in the direction of extrude, right? I thought you wanna mesh it with hexaedrals only - sorry for miss understanding. Tobi |
|
May 16, 2012, 06:36 |
|
#29 | |
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 21 |
Quote:
A hex mesh would be much better than triangular prism (extruded triangles), have you done something like this in Salome? |
||
May 17, 2012, 08:03 |
|
#30 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Quote:
Hi, yes I did it very often,... Unfortunately I am not on my desk computer and have no hdf file to show you how to mesh with hex. I ll upload one on monday evening! Tobi Referencing to salome tutorials: http://www.salome-platform.org/user-...edf-exercise-1 |
||
November 19, 2012, 05:03 |
|
#31 |
New Member
sebastian n
Join Date: Nov 2012
Posts: 17
Rep Power: 14 |
First of all, i want to thank everybody who keeps up this forum i am studying mechanical engineering and i try to learn CDF simulation. i created simple construction elements with salome 6.5.0, created a mesh and exported it to a unv file. My problem is that i just can simulate symmetric elements like a t shaped pipe, but once my element is asymmetric nothing happens when i start paraFoam. A Friend of mine told me i should use local coordinates; could that be the mistake? and how to use local coordinates in Salome and mesh it?
Thanks |
|
November 19, 2012, 08:16 |
|
#32 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Sebastian and welcome to the forum,
I am not so familiar with the paraview code but in my case every geometrie is working. Maybe try the following: 1. create a file with the ending *.foam like Code:
touch paraview.foam Code:
paraview Tobi |
|
November 21, 2012, 07:18 |
|
#33 | |
New Member
sebastian n
Join Date: Nov 2012
Posts: 17
Rep Power: 14 |
Quote:
|
||
November 21, 2012, 07:37 |
|
#34 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi,
like your case I think you mean, that you can not visualize your results. You mesh is very coarse but with the right settings its possible to get a solution. I wrote you an Email. Tobi |
|
February 21, 2013, 16:42 |
|
#35 |
New Member
Roman Gápár
Join Date: Apr 2012
Posts: 8
Rep Power: 14 |
Hello foamers...
I have a very similiar problem. But a bit different. I exported the .unv file from salome Im using 6.6. and I create B-C and everything in OF folders. I tried to convert mesh to OF (2.1.1) mesh but I obtained this error code: Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.1-221db2718bbb Exec : ideasUnvToFoam segmentbc.unv Date : Feb 21 2013 Time : 21:37:20 Host : "dell" PID : 11581 Case : /home/gaspar/OpenFOAM/gaspar-2.1.1/run/cavity nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM FATAL ERROR: Cannot open file "segmentbc.unv" From function ideasUnvToFoam in file ideasUnvToFoam.C at line 673. FOAM exiting Thx for help. Regards Roman |
|
February 26, 2013, 10:33 |
|
#37 |
New Member
Roman Gápár
Join Date: Apr 2012
Posts: 8
Rep Power: 14 |
Thank you Tobi
I had my .unv file in constant folder...after that I moved it to OF case root folder and now it works...Thank you again Roman |
|
September 10, 2014, 09:43 |
Same problem to convert
|
#38 | |
Senior Member
Himanshu Sharma
Join Date: Jul 2012
Posts: 101
Rep Power: 14 |
Quote:
Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.3.0-f5222ca19ce6 Exec : ideasUnvToFoam UAV_salome.unv Date : Sep 10 2014 Time : 17:42:25 Host : "mohd-CELSIUS-W510" PID : 12849 Case : /home/mohd/Himanshu/test_1 nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Processing tag:164 Starting reading units at line 3. l:1 units:" SI: Meter (newton)" unitType:2 Unit factors: Length scale : 1 Force scale : 1 Temperature scale : 1 Temperature offset : 273.15 Processing tag:2420 Skipping tag 2420 on line 9 Skipping section at line 9. Processing tag:2411 Starting reading points at line 20. Read 1169416 points. Processing tag:2412 Starting reading cells at line 2338855. First occurrence of element type 22 for cell 1 at line 2338856 --> FOAM Warning : From function readCells(IFstream&, label&) in file ideasUnvToFoam.C at line 467 Reading "UAV_salome.unv" at line 2338856 Cell type 22 not supported --> FOAM FATAL IO ERROR: Attempt to get back from bad stream file: IStringStream.sourceFile at line 0. From function void Istream::getBack(token&) in file db/IOstreams/IOstreams/Istream.C at line 56. FOAM exiting Thank you |
||
October 23, 2014, 09:42 |
|
#39 |
Senior Member
|
Just a minor hint, as most of you seem to prefer the unv-method: If you google for salomeToOpenFOAM.py you should find a short python-script which can be started from within Salome and which will export the marked mesh into a complete polyMesh-folder. For me it worked including pyramids as well...
|
|
December 21, 2017, 12:39 |
Salome mesh having pyramids to openfoam
|
#40 |
Member
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11 |
In my salome generated mesh I have some pyramids, but while exporting to UNV format salome ignores pyramid elements. Actually I need those pyramid cells so is there any way by which I can export that mesh to openfoam without removing pyramids?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Salome] Problems for creating mesh in salome to OPENFOAM | bye bye my blue | OpenFOAM Meshing & Mesh Conversion | 8 | December 5, 2023 01:57 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[Commercial meshers] Mesh conversion .gtm to OpenFOAM | ansab | OpenFOAM Meshing & Mesh Conversion | 2 | December 6, 2016 14:48 |
[Commercial meshers] Problems with ANSYS mesh conversion | tdog | OpenFOAM Meshing & Mesh Conversion | 1 | March 31, 2016 18:36 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |