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

Could not find the keyword "NMARK=".

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2024, 10:46
Default Could not find the keyword "NMARK=".
  #1
New Member
 
Peter Lysdahl Bęk
Join Date: Nov 2021
Posts: 6
Rep Power: 5
PeterBaek is on a distinguished road
Hello

I am trying to generate my first mesh for SU2 through gmsh and have reached the following error.

Error in "bool CSU2ASCIIMeshReaderFVM::ReadMetadata(bool, CConfig*)":
-------------------------------------------------------------------------
Could not find the keyword "NMARK=".
Check the SU2 ASCII file format.
------------------------------ Error Exit -------------------------------



I have exported my mesh as su2 where I attained the following error

Mismatch between NPOIN and number of points listed in mesh file.
Please check the mesh file for correctness.


which I solved by deleting my center point for my sphere in the mesh file.
Does anyone know how to handle my error with NMARK? (NMARK is present in the file so I do not see the problem)

Here is my .geo file from gmsh.

--------------------------------------------------------------------------------------
// Gmsh project created on Tue Jan 09 14:52:39 2024
SetFactory("OpenCASCADE");
//+
Point(0) = {0, -0, 0, 1.0};
Point(1) = {-0.1524, -0, 0, 1.0};
Point(2) = {0,0.1524,0,1.0};
Point(3) = {-0.3,0,0,1.0};
Point(4) = {0,0.3,0,1.0};
Point(5) = {0,0,0,1.0};


Line(1) = {1,3};
Line(2) = {2,4};

Circle(3) = {1, 0, 2};
//+
Circle(4) = {3, 0, 4};
//+
Curve Loop(1) = {4, -2, -3, 1};
//+
Plane Surface(1) = {1};
//+
Transfinite Curve {3, 4} = 150 Using Progression 1;
//+
Transfinite Curve {1, 2} = 60 Using Progression 1.05;
//+
Transfinite Surface {1};
//+

//+
Extrude {0, 0, 0.01} {
Surface{1}; Layers {1}; Recombine;
}
//+
Transfinite Volume{1};
//+
Physical Surface("Wall", 13) = {4};
//+//+
Physical Surface("symmetry", 15) = {5};
//+
Physical Surface("Exit", 16) = {3};

//+
Physical Surface("Inlet", 14) = {2};
--------------------------------------------------------------------------------------


Best.
Peter
PeterBaek is offline   Reply With Quote

Old   January 10, 2024, 18:05
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Do you really need an extruded 3D mesh with one cell in the z-direction?
If so, you also need to define a volume or else you will only have surface meshes (and no mesh in the .su2 file).
bigfootedrockmidget is offline   Reply With Quote

Old   January 11, 2024, 06:25
Default
  #3
New Member
 
Peter Lysdahl Bęk
Join Date: Nov 2021
Posts: 6
Rep Power: 5
PeterBaek is on a distinguished road
Thanks for the reply.
I will in the future investigate more complex cases where extrude is needed which is why I am interested in this simple 3D case.
I have added a physical volume "Physical Volume("inside", 18) = {1};"
However I get the exact same error
PeterBaek is offline   Reply With Quote

Old   January 14, 2024, 15:45
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
Hi,
You need to add the geometric volume as well as the physical marker:
Code:
//+
Physical Volume("interior", 27) = {1};
//+
Volume(2) = {1};
//+
Recombine Surface "*";

Also be aware that there is a bug in an older version of gmsh where all interior points are saved as a marker (4.11.1 had this)
bigfootedrockmidget is offline   Reply With Quote

Reply


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
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 6 June 24, 2024 04:17
How to make a code parallel? Bruno Machado Fluent UDF and Scheme Programming 15 May 27, 2016 10:18
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32


All times are GMT -4. The time now is 13:44.