|
[Sponsors] |
[cfMesh] General workflow to create a flawless mesh in cfMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 31, 2019, 13:57 |
|
#21 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi,
Just wondering if you have the version of extractFeatureEdges.py that will work on salome 9.3. Pei-Ying |
|
July 31, 2019, 15:46 |
|
#22 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8 |
Let me check, it should be trivial to adapt. I'll see tomorrow from office
|
|
July 31, 2019, 16:01 |
|
#23 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Thanks!
When I tried Salome 9.3 on Linux mint 19.1 - python script from OpenFOAM-v1906+/cfMesh: I got the following error: >>> exec(open("/home/phsieh/salome/extractFeatureEdges_1906.py", "rb").read()) Traceback (most recent call last): File "<input>", line 1, in <module> File "<string>", line 32 print 'Extracting edges of %s with feature angle > %g.' % (body.GetName(), minFeatureAngle) ^ SyntaxError: invalid syntax |
|
August 4, 2019, 19:59 |
|
#24 | |
Member
Join Date: Aug 2018
Posts: 47
Rep Power: 8 |
Quote:
really looking foward to your script on extractFeatureEdges. Hope it ll come out very soon, which is useful to me. |
||
August 5, 2019, 02:06 |
|
#25 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8 |
@phsieh2005
That error is related to print syntax that expects parentesis in python3. I attached v3 compatible script. Tested on Salome 9.3.0 under windows. Should work under linux too as there is no file handling. It won't work with Salome versions prior to 9, due to multiple study capabilities that has been dropped. If a universal version is needed it should be trivial to implement a couple of checks to issue correct statements but I have no time these days. Bye Last edited by time-; August 5, 2019 at 02:07. Reason: corrected salome release number |
|
August 5, 2019, 06:58 |
|
#26 | |
New Member
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
Quote:
I think there might be 2 reasons. 1: I didn't export the correct fms file with mesh information. I don't really know how to check it. 2: I didn't specify in meshDict so that Cfmesh didn't follow the facemesh |
||
August 5, 2019, 08:24 |
|
#27 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8 |
@asia
You can think about cfMesh as a blockMesh + SHM on steroids, with different shape capabilities (SHM is cartesian only while cfMesh can produce tets and poly also) The workflow is similar though: bounding box + base octree + local/obj refinements + snap and so forth. What you export from Salome, as fms, is nothing different from a STL to feed snappyHexMesh with. It's used as a base surface to refine and snap cells on and the tria structure can't and won't be ported to the new mesh. What is exactly the problem in the image you attached? Can you share more informations about that? Bye |
|
August 5, 2019, 11:19 |
|
#28 |
New Member
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
@Mattia
Thanks Mattia! Since my geometry is kinda complex, I couldn't get very good mesh using cfmesh. Mesh without boundary layers is ok with dozens of 'negative volume decomposition tets' and concaved cells, while mesh with several boundary layers could have hundreds of bad cells. So I'm looking for ways to get rid of or at least minimize these bad cells. I thought following these steps I quoted could get better mesh based on the face mesh generated from salome. But it seems the face mesh didn't influence the volume mesh procedure in cfMesh... |
|
August 5, 2019, 12:59 |
|
#29 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8 |
As far as I know trisurface quality won't influence final cfMesh grid. Of course it must be conform to your base geometry.
For the rest I can't help you without more details. If your case ain't confidential, consider to post geometry and meshdict (you may have to upload it somewhere) Bye |
|
August 6, 2019, 09:14 |
|
#30 | |
New Member
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
Quote:
Below is the geometry and meshDict files. I still haven't found a way to get a good mesh. Do these concaved cells and negative volume decomposition tets affect the simlation a lot? https://drive.google.com/open?id=1Iz...4Hxm0-OrX-sge5 |
||
August 6, 2019, 09:53 |
|
#31 |
New Member
Mattia
Join Date: May 2018
Location: Novara - Italy
Posts: 29
Rep Power: 8 |
Pretty much, yes.
I will look into your files better tonight but at first glance I saw there is no featureEdges definition in your fms file. Is this wanted or just an error? Can you share IGES or STEP geometry file also? I'd like to inspect original geometry, prior to triangulation. Bye |
|
August 6, 2019, 12:26 |
|
#32 |
New Member
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
Sorry that I uploaded the wrong one. I uploaded a new fms file from salome, which has edge features. I don't know how to include boundaries in the whole step file so I upload the step for the whole geometry.
Thanks! |
|
August 8, 2020, 20:02 |
It osen't work with salome-9
|
#33 | |
New Member
Oliva
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
Quote:
Hello I have problem in using python script, because it doesn't work with the salome- 9. Thanks |
||
August 13, 2020, 18:54 |
Then you can join them with renameBoundary by using a wildcard
|
#34 | |
New Member
Elaxender david
Join Date: Nov 2017
Posts: 17
Rep Power: 8 |
Quote:
I used cat utility for combining all stl parts but wasn't good. What did you mean by "Then you can join them with renameBoundary by using a wildcard"?, and the python script for making fms file dosen't work with salome 9.3. I changed the python script but ... please help me. I don't know if the problem is from Salome or script. Thank you a lot. |
||
August 13, 2020, 18:59 |
Same problem
|
#35 | |
New Member
Elaxender david
Join Date: Nov 2017
Posts: 17
Rep Power: 8 |
Quote:
|
||
October 15, 2020, 06:28 |
|
#36 |
Member
Eren
Join Date: Aug 2018
Posts: 86
Rep Power: 9 |
Hello!
I have few bad cells and I realised that these iterations are not actually lowering them(also there is an error that I don't know what it is). Is says there are (for example) 300 highly skew faces, starts iterating but that value is just fluctuating near the first value. Any idea how to solve this? Code:
This may impair the quality of the result. 289 highly skew faces detected. --> FOAM Warning : From bool Foam::Module::polyMeshGenChecks::checkFacePyramids(const Foam::Module::polyMeshGen&, bool, Foam::scalar, Foam::labelHashSet*, const boolList*) in file utilities/meshes/polyMeshGenChecks/polyMeshGenChecksGeometry.C at line 2107 Error in face pyramids: 16 faces pointing the wrong way! --> FOAM Warning : From bool Foam::Module::polyMeshGenChecks::checkFaceFlatness(const Foam::Module::polyMeshGen&, bool, Foam::scalar, Foam::labelHashSet*, const boolList*) in file utilities/meshes/polyMeshGenChecks/polyMeshGenChecksGeometry.C at line 3008 16 faces with severe warpage(flatness < 0.8) found |
|
December 7, 2020, 12:32 |
|
#38 |
Member
Mohammad M F
Join Date: Jan 2016
Location: Washington DC, USA
Posts: 43
Rep Power: 10 |
While the two updated python scripts are working fine in latest version of Salome, I am currently having issues with conversion to fms file.
When I type triSurf().writeFms("FileName.fms") in the console, I get the following error. Does anyone know how to resolve it? Converting SMESH Mesh 'fda_nozzle' Face 1232 is assigned to both groups noname_Group_5 and inlet Traceback (most recent call last): File "<input>", line 1, in <module> File "<string>", line 119, in __init__ RuntimeError: Groups of faces are not unique, i.e. they overlap. |
|
January 20, 2021, 15:04 |
external box cells alignement in CF Mesh
|
#39 |
New Member
Join Date: Dec 2020
Posts: 26
Rep Power: 5 |
hello,
thank you for the cfMesh workflow. it's very good ! I have an issue which is about aligning the cells on the domain external faces, as you can see in the attached picture. All the first cells are wrongly distributed and cut at less than a half of what they should be. I also don't succeed to set up some expansion ratio along the main axis. Would have some solution to manage these ? thanks |
|
April 28, 2022, 14:02 |
|
#40 | |
Member
Gabriel Felix
Join Date: May 2021
Location: Brazil
Posts: 35
Rep Power: 6 |
Quote:
Excellent tips! Thanks so much! |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 03:19 |
Star CCM Overset Mesh Error (Rotating Turbine) | thezack | Siemens | 7 | October 12, 2016 11:14 |
How Can I create the mesh by using a quarter of mesh? | sasanghomi | FLUENT | 0 | July 29, 2013 16:15 |
Icemcfd 11: Loss of mesh from surface mesh option? | Joe | CFX | 2 | March 26, 2007 18:10 |