Parameterfile Cartesian Box with Periodic Boundary Conditions

From HOPR
Jump to: navigation, search












This parameter file can be found in

tutorials/1-02-cartbox_periodic/parameter.ini

See Box with Periodic Boundary Conditions for a detailed description. The parameter file must not follow a given structure. If mandatory parameters are not given, an error message will be shown.

Parameterfile

!================================================================================================================================= !
! OUTPUT
!================================================================================================================================= !
  ProjectName  = cartbox_periodic      ! Name of output files
  Debugvisu    = T                     ! Write files for Visualization of the mesh and boundary conditions (tecplot ascii)
 
!================================================================================================================================= !
! MESH
!================================================================================================================================= !
  Mode         =1                      ! Mode for Cartesian boxes
  nZones       =1                      ! number of boxes
  Corner       =(/0.,0.,0. ,,1.,0.,0. ,,1.,1.,0. ,,  0.,1.,0.,, 0.,0.,1. ,,1.,0.,1. ,,1.,1.,1. ,,  0.,1.,1. /)
                                       ! Corner node positions: (/ x_1,y_1,z_1, x_2,y_2,z_2,..... , x_8,y_8,z_8/)
  nElems       =(/2,3,4/)              ! number of elements in each direction
  BCIndex      =(/1,3,6,4,5,2/)        ! Indices of Boundary Conditions for  six Boundary Faces (z-,y-,x+,y+,x-,z+)
  elemtype     =108                    ! Elementform (104: Tetrahedra, 105: pyramid, 106:prism, 108: Hexahedral)
 
!================================================================================================================================= !
! BOUNDARY CONDITIONS
!================================================================================================================================= !
    BoundaryName=BC_zminus             ! BC index 1 (from  position in parameterfile)
    BoundaryType=(/1,0,0,1/)           ! (/ Type, curveIndex, State, alpha /)
    BoundaryName=BC_zplus              ! BC index 2
    BoundaryType=(/1,0,0,-1/)          ! here the direction of the vector 1 is changed, because it is the opposite side
    vv=(/0.,0.,1./)                    ! vector for periodic BC in z direction (zminus,zplus), index=1
 
    BoundaryName=BC_yminus             ! BC index 3
    BoundaryType=(/1,0,0,2/)
    BoundaryName=BC_yplus              ! BC index 4
    BoundaryType=(/1,0,0,-2/)          ! (/ BCType=1: periodic, 0, 0, Index of second vector vv in parameter file /)
    vv=(/0.,1.,0./)                    ! vector for periodic BC in y direction (yminus,yplus), index=2
 
    BoundaryName=BC_inflow             ! BC index 5
    BoundaryType=(/2,0,0,0/)
    BoundaryName=BC_outflow            ! BC index 6
    BoundaryType=(/2,0,0,0/)

Screen Output

After executing the upper parameter file the following output will be shown:

====================================================================================================================================
           _______     _______    ___________________    ___________________   ___________________                         xX    
          /      /)   /      /)  /                  /)  /                  /) /                  /)     .xXXXXXXXXx.       X     
         /      //   /      //  /      _____       //  /      _____       // /      _____       //    .XXXXXXXXXXXXXXXx  .XXXXx  
        /      //   /      //  /      /)___/      //  /      /)___/      // /      /)___/      //   .XXXXXXXXXXXXXXXXXXXXXXXXXXx 
       /      //___/      //  /      //   /      //  /      //___/      // /      //___/      //  .XXXXXXXXXXXXXXXXXXXXXXXX´     
      /                  //  /      //   /      //  /                  // /                  //  .XX``XXXXXXXXXXXXXXXXXX´        
     /      _____       //  /      //   /      //  /      ____________// /      __      ____//   XX`  `XXXXX`      .X´           
    /      /)___/      //  /      //   /      //  /      /)___________) /      /)_|    |____)   XX     XXX`       .´             
   /      //   /      //  /      //___/      //  /      //             /      //  |    |__     ,X`    XXX´                       
  /      //   /      //  /                  //  /      //             /      //   |      /)   ,X`   .XX´                         
 /______//   /______//  /__________________//  /______//             /______//    |_____//   ,X`   XX´                           
 )______)    )______)   )__________________)   )______)              )______)     )_____)   xX    XXx                            
 
====================================================================================================================================
------------------------------------------------------------------------------------------------------------------------------------
 INIT OUTPUT...
 | Reading from file "parameter.ini":
 |                    projectname |                  cartbox_periodic | *CUSTOM | 
 |                        Logging |                                 F | DEFAULT | 
 |                      DebugVisu |                                 T | *CUSTOM | 
 |                 DebugVisuLevel |                                 0 | DEFAULT | 
 |                   OutputFormat |                                 0 | DEFAULT | 
 |                       sfc_type |                           hilbert | DEFAULT | 
 |                      doSortIJK |                                 F | DEFAULT | 
 |           useSpaceFillingCurve |                                 T | DEFAULT | 
 INIT OUTPUT DONE!
------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------
 INIT MESH...
 |                     useCurveds |                                 F | DEFAULT | 
 |                           Mode |                                 1 | *CUSTOM | 
 |                         nZones |                                 1 | *CUSTOM | 
 |                         Corner |         Real array of size (  24) | *CUSTOM |  0.00 0.00 0.00 1.00 0.00 0.00 1.00 1.00
                                                                                 |  0.00 0.00 1.00 0.00 0.00 0.00 1.00 1.00
                                                                                 |  0.00 1.00 1.00 1.00 1.00 0.00 1.00 1.00
 |                        BCIndex |      Integer array of size (   6) | *CUSTOM |     1    3    6    4    5    2
 |                         nElems |      Integer array of size (   3) | *CUSTOM |     2    3    4
 |                             l0 |         Real array of size (   3) | DEFAULT |  0.00 0.00 0.00
 |                         factor |         Real array of size (   3) | DEFAULT |  0.00 0.00 0.00
 |                       elemtype |                               108 | *CUSTOM | 
 |                   preScaleMesh |                                 F | DEFAULT | 
 |                  postScaleMesh |                                 F | DEFAULT | 
 |                      meshScale |                       0.10000E+01 | DEFAULT | 
 |                    SpaceQuandt |                       0.10000E+00 | DEFAULT | 
 |                   BoundaryName |                         BC_zminus | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     1    0    0    1
 |                   BoundaryName |                          BC_zplus | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     1    0    0   -1
 |                   BoundaryName |                         BC_yminus | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     1    0    0    2
 |                   BoundaryName |                          BC_yplus | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     1    0    0   -2
 |                   BoundaryName |                         BC_inflow | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     2    0    0    0
 |                   BoundaryName |                        BC_outflow | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     2    0    0    0
 |                             vv |         Real array of size (   3) | *CUSTOM |  0.00 0.00 1.00
 |                             vv |         Real array of size (   3) | *CUSTOM |  0.00 1.00 0.00
 |                  doZcorrection |                                 F | DEFAULT | 
 |                        OrientZ |                                 F | DEFAULT | 
 |                     SplitToHex |                                 F | DEFAULT | 
 |                      nFineHexa |                                 1 | DEFAULT | 
 |                 MeshPostDeform |                                 0 | DEFAULT | 
 |                 ConformConnect |                                 T | DEFAULT | 
 |             checkElemJacobians |                                 F | DEFAULT | 
 |              jacobianTolerance |                       0.10000E-15 | DEFAULT | 
 INIT MESH DONE!
------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------
 INIT BASIS...
 |                          nVisu |                                 1 | DEFAULT | 
 |                       nAnalyze |                                 3 | DEFAULT | 
 INIT BASIS DONE!
------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------
 INIT SEARCH...
 |               nElemsNodeSearch |                                25 | DEFAULT | 
 |               RefineSideSearch |                       0.80000E+01 | DEFAULT | 
 INIT SEARCH DONE!
------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------
 THE FOLLOWING INI-FILE PARAMETERS WERE IGNORED:
------------------------------------------------------------------------------------------------------------------------------------
====================================================================================================================================
 
                                              Entering fillMesh 
 
 Building cartesian mesh
   build zone no.:           1
 Number of Elements:           24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE DEBUGMESH...
   #Elements           24
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_periodic_Debugmesh.vtu   DONE
    Mesh visualized for debug purposes in file : cartbox_periodic_Debugmesh
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE BC MESH...
   #BCSides           52
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_periodic_Debugmesh_BC.vtu   DONE
    Boundary mesh visualized for debug purposes in file : cartbox_periodic_Debugmesh_BC
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Mesh connect starts
Count sides, delete Null BCs and check periodic BCs...
-----------------------------------
number of sides          :          144
number of Inner sides    :           92
number of BC sides       :           52
number of periodic sides :           28
-----------------------------------
Insert periodic sides...
Eliminate multiple Nodes...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOBAL UNIQUE NODES ...
   All Nodes sorted...
   Number of nodes to check:          116
    size of tolerance box:                    1
  Number of deleted nodes          56
  Number of unique nodes          60
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
Connect Conforming inner and periodic sides...
    -->          120  sides of          120   sides connected.
Mesh Connect completed with success.  
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD EDGES ...
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOBAL UNIQUE NODES ...
   All Nodes sorted...
   Number of nodes to check:           60
    size of tolerance box:                    1
  Number of deleted nodes           0
  Number of unique nodes          60
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
 =======================CHECK NODE CONNECTIVITY =========================================
###### CHECK CORNER NODES
###### CHECK EDGE CURVED NODES
###### CHECK SURFACE CURVED NODES
SORT ELEMENTS ON SPACE FILLING CURVE, TYPE hilbert ...
... DONE
 write space filling curve to sfc.dat
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE DEBUGMESH...
   #Elements           24
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_periodic_Debugmesh.vtu   DONE
    Mesh visualized for debug purposes in file : cartbox_periodic_Debugmesh
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE BC MESH...
   #BCSides           52
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_periodic_Debugmesh_BC.vtu   DONE
    Boundary mesh visualized for debug purposes in file : cartbox_periodic_Debugmesh_BC
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
                                        GOT mesh (incl. rasterfahndung) 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 WRITE DATA TO HDF5 FILE...
 Mesh statistics:
 Element Type | number of elements
 104        |        0
 204        |        0
 105        |        0
 115        |        0
 205        |        0
 106        |        0
 116        |        0
 206        |        0
 108        |       24
 118        |        0
 208        |        0
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .002s ]
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .003s ]
====================================================================================================================================
 HOPR successfully finished: Mesh "cartbox_periodic_mesh.h5" written to HDF5 file.
====================================================================================================================================