Hi everyone! I'm a master student working on a data-driven fluid dynamics project. Currently, I'm generating DNS results of flow around a 2D square cylinder. I'm reaching out to ask for more information about converting a 2D CGNS mesh to h5 format with HOPR. I've already looked through the docs but haven't found a solution.
In the FLEXI documentation for the NACA0012 case, only the 2D mesh is required for passing from 3D to 2D simulation. As far as I know, in the example, the CGNS mesh is 3D, meanwhile, in parameter_hopr.ini
I have the following lines:
!=============================================================================== !
! EXTRUDED 2D MESH OPTIONS
!=============================================================================== !
OrientZ = T
dozcorrection = T
zPeriodic = T
zLength = 1.0
zstart = 0.
nElemsZ = 1
Why do I need to extrude the mesh if it's already 3D? So I tried to directly use my 2D mesh specifying the mesh dimension with MeshDim=2
. My ini
file looks like this:
!=============================================================================== !
! OUTPUT
!=============================================================================== !
projectname = 2D_FVM_Re22000_1.5e-3
outputFormat = 1
Debugvisu = T
DebugvisuLevel = 0
!=============================================================================== !
! MESH
!=============================================================================== !
Mode = 3
nZones = 1
filename = 2D_FVM_Re22000_1.5e-3.cgns
MeshDim = 2
!=============================================================================== !
! CURVED
!=============================================================================== !
useCurveds = F
!=============================================================================== !
! BOUNDARY CONDITIONS
!=============================================================================== !
BoundaryName = inlet
BoundaryType = (/2,0,0,0/)
BoundaryName = upside
BoundaryType = (/2,0,0,0/)
BoundaryName = outlet
BoundaryType = (/2,0,0,0/)
BoundaryName = downside
BoundaryType = (/2,0,0,0/)
BoundaryName = wall-front
BoundaryType = (/3,0,0,0/)
BoundaryName = wall-up
BoundaryType = (/3,0,0,0/)
BoundaryName = wall-back
BoundaryType = (/3,0,0,0/)
BoundaryName = wall-down
BoundaryType = (/3,0,0,0/)
hopr version 1.2.0 with commit 9223f64
====================================================================================================================================
------------------------------------------------------------------------------------------------------------------------------------
INIT OUTPUT...
| projectname | 2D_FVM_Re22000_1.5e-3 | *CUSTOM |
| Logging | F | DEFAULT |
| DebugVisu | T | *CUSTOM |
| OutputFormat | 1 | *CUSTOM |
| DebugVisuLevel | 0 | *CUSTOM |
| sfc_type | hilbert | DEFAULT |
| doSortIJK | F | DEFAULT |
| useSpaceFillingCurve | T | DEFAULT |
| sfc_boundbox | 2 | DEFAULT |
INIT OUTPUT DONE!
------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------
INIT MESH...
| useCurveds | F | *CUSTOM |
| Mode | 3 | *CUSTOM |
| meshIsAlreadyCurved | F | DEFAULT |
| nskipZ | 1 | DEFAULT |
| NBlock | 1 | DEFAULT |
| nskip | 1 | DEFAULT |
| nMeshFiles | 1 | DEFAULT |
| BugFix_ANSA_CGNS | F | DEFAULT |
| FileName | 2D_FVM_Re22000_1.5e-3.cgns | *CUSTOM |
| postScaleMesh | F | DEFAULT |
| meshScale | 0.10000E+01 | DEFAULT |
| SpaceQuandt | 0.10000E+00 | DEFAULT |
| BoundaryName | inlet | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 2 0 0 0
| BoundaryName | upside | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 2 0 0 0
| BoundaryName | outlet | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 2 0 0 0
| BoundaryName | downside | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 2 0 0 0
| BoundaryName | wall-front | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 3 0 0 0
| BoundaryName | wall-up | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 3 0 0 0
| BoundaryName | wall-back | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 3 0 0 0
| BoundaryName | wall-down | *CUSTOM |
| BoundaryType | Integer array of size ( 4) | *CUSTOM | 3 0 0 0
| MeshDim | 2 | *CUSTOM |
Inifile missing necessary keyword item : zlength
_____________________________________________________________________________
Program abort caused in File : ../src/readin/readintools.f90 Line 827
This file was compiled at Jul 5 2023 18:23:59
Message: Code stopped during inifile parsing!
See 2D_FVM_Re22000_1.5e-3_ERRORS.out for more details
STOP 1