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

issue with su2 reading mesh file

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

Like Tree1Likes
  • 1 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2023, 06:05
Default issue with su2 reading mesh file
  #1
New Member
 
rishi gnanasegar
Join Date: Nov 2023
Posts: 4
Rep Power: 2
rgusr21305 is on a distinguished road
Hey guys,
thanks in advance for any help provided.
Ive been trying to run a simple case through su2 where im analysing the flow over the d8 aircraft, ive modelled the aircraft in openvsp, meshed the model in gmsh and am currently attempting to run it in su2. However su2 is having trouble reading the mesh file and initially outputs this error:
Error in "void CPhysicalGeometry:istributeColoring(const CConfig *, CGeometry *)":
-------------------------------------------------------------------------
Mismatch between NPOIN and number of points listed in mesh file.
Please check the mesh file for correctness.

------------------------------ Error Exit -------------------------------
through trial and error ive found that this error can be fixed by artificially adding one digit to the "NPOIN" numbe------------------- Geometry Preprocessing ( Zone 0 ) -------------------


Error in "bool CSU2ASCIIMeshReaderFVM::ReadMetadata(const bool, CConfig *)":
-------------------------------------------------------------------------
Could not find the keyword "NMARK=".
Check the SU2 ASCII file format.r in the mesh file, however a new error occurs when this happens which is:

ive iterated the model in both vsp and gmsh multiple times and keep running into the same error, ive also attached the vsp model, stl and gmsh file below. any help would be greatly appreciated.

the files related to this are in the google drive below:
https://drive.google.com/drive/folde...usp=share_link
rgusr21305 is offline   Reply With Quote

Old   December 11, 2023, 06:36
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 533
Rep Power: 17
bigfootedrockmidget is on a distinguished road
This happens because gmsh uses 'helper nodes' to construct the mesh. For instance when you define a circle in gmsh, you need the center point of the circle. This center point will then be defined in gmsh but not used in the end as a mesh point. If you define your entire geometry inside gmsh, you can prevent writing these additional points by deselecting the option 'save all elements'. I am not sure how this works when you import an external geometry. Is this option deselected for you?
rgusr21305 likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   December 11, 2023, 06:40
Default
  #3
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 533
Rep Power: 17
bigfootedrockmidget is on a distinguished road
By the way, the files that you have shared show a completely different problem, which is that you did not write the elements to the file. Are you sure that you shared the correct case?
bigfootedrockmidget is offline   Reply With Quote

Old   December 11, 2023, 07:45
Default
  #4
New Member
 
rishi gnanasegar
Join Date: Nov 2023
Posts: 4
Rep Power: 2
rgusr21305 is on a distinguished road
Hi there,
yes this has been tried with both the save all elements ticked and unticked, but however this does not effect the issue. The only geometry that I am building in gmsh is the fluid domain which is a box, the imported geometries I dont think would be effected as they are just stl files with coordinates.
The elements not being written is what happens when I untick "save all elements" when saving, without it the elements are there. Ill upload a file with the option ticked so you can have a look
thanks.
rgusr21305 is offline   Reply With Quote

Old   December 11, 2023, 08:13
Default
  #5
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 533
Rep Power: 17
bigfootedrockmidget is on a distinguished road
You are then probably not generating the internal 3D elements in gmsh. You have to make sure that the stl surfaces are closed and then create volumes for each closed stl surface.
bigfootedrockmidget is offline   Reply With Quote

Old   December 17, 2023, 12:08
Default
  #6
New Member
 
rishi gnanasegar
Join Date: Nov 2023
Posts: 4
Rep Power: 2
rgusr21305 is on a distinguished road
Hey, so ive been working around the issue regarding the volumes, as soon as I add the surfaces as volumes the mesh fails to integrate, could you potentially have a look at the mesh and see whats wrong in gmsh ?

its titled as the failed mesh in this folder.
https://drive.google.com/drive/folde...usp=share_link
thanks in advance
rgusr21305 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
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41


All times are GMT -4. The time now is 23:16.