CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Tool to convert OpenFoam mesh to SU2 mesh (2D and 3D)

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

Like Tree17Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2023, 01:07
Default Script Bug?
  #41
New Member
 
Moshe Hollander
Join Date: Dec 2018
Posts: 20
Rep Power: 8
mhollander is on a distinguished road


Sorry to revive an old thread, but I'm giving this script a go and have been persistently running into the following error:


Code:
kindMesh (2D/3D) = 3D
Input file read correctly

Reading of the 'points' file
Problem during the 'points' file reading



I have attached the python script as run, the associated text file and the associated OpenFOAM case.


If anyone has any insights, I'd love to hear from you!


Best,
Moshe.



cylinder.zip

testMesh.txt

ConvertOpenFoam2SU2.zip
mhollander is offline   Reply With Quote

Old   October 5, 2023, 01:16
Default
  #42
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Check points folder created in polymesh directory
harsha_kulkarni is offline   Reply With Quote

Old   October 5, 2023, 01:35
Default
  #43
New Member
 
Moshe Hollander
Join Date: Dec 2018
Posts: 20
Rep Power: 8
mhollander is on a distinguished road
Quote:
Originally Posted by harsha_kulkarni View Post
Check points folder created in polymesh directory

For some reason blockMesh wasn't working there...


I tried a different tutorial case where it did work (see attached). There are now in fact 'points' in the PolyMesh folder. I'm still getting the same error.


See attached case.



implicitAMI.zip
mhollander is offline   Reply With Quote

Old   March 1, 2024, 03:16
Default
  #44
New Member
 
Forrest WU
Join Date: Apr 2023
Posts: 2
Rep Power: 0
S1mple is on a distinguished road
Quote:
Originally Posted by alexmogavero View Post
Thank you, I have found what was wrong. The Open Foam mesh was not generated by extrusion, but using an app to transform it into a wedge.

Using your app before the transformation into a wedge, solved the issue.
Hi,

Sorry for reply a thread so old, but I'm facing the same problem, so could you give a hint about how to do that?

Sincerely,
Jianshu Wu
S1mple is offline   Reply With Quote

Old   March 12, 2024, 01:35
Default
  #45
New Member
 
chandrashekhar a patankar
Join Date: Mar 2023
Posts: 10
Rep Power: 3
chandrashekharapatankar is on a distinguished road
you can create mesh in GMESH and export it to su2 format

(just for information)
chandrashekharapatankar is offline   Reply With Quote

Old   October 16, 2024, 18:26
Default
  #46
New Member
 
TM
Join Date: Nov 2021
Posts: 1
Rep Power: 0
tlmessin is on a distinguished road
Quote:
Originally Posted by fluxCatcher View Post
Hi ,

Thanks for the new code. The bug isn't gone yet for pyramid cells, but I will try fixing it if I can.

Kind regards

Prakriteesh
Hi, I am trying to fix this pyramid issue myself. In the pyramid conversion section, while (len(listLateralFacesOrdered) < nb_lateral_faces) is never False and the loop never terminates. Were you able to fix this?

Has anyone found a fix for this or understands it well enough to update?

Thank you,

TM
tlmessin 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



All times are GMT -4. The time now is 07:46.