Parameterfile Stretching Functions

From HOPR
Jump to: navigation, search












This parameter file can be found in

tutorials/1-04-cartbox_multiple_stretch/parameter.ini

See Stretching Functions 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_multiple_stretch   ! 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       =3                           ! number of boxes
  ! ===   lower left zone  ===
  Corner       =(/-2.,-1.,0. ,,0.,-1.,0. ,,0.,0.,0. ,, -2.,0.,0.,,-2.,-1.,2. ,,0.,-1.,2. ,,0.,0.,2. ,, -2.,0.,2./)
                                            ! Corner node positions: (/ x_1,y_1,z_1, x_2,y_2,z_2,..... , x_8,y_8,u´z_8/)
  nElems       =(/8,4,4/)                   ! number of elements in each direction
  BCIndex      =(/6,1,3,0,4,7/)             ! 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)
  factor       =(/-1.2,1.,1./)                ! element stretching, either with a constant growth factor (+/- changes direction)
  !l0          =(/0.,0.,0./)                  ! or with a minimimum size
  ! ===   upper left zone  ===
  Corner       =(/-2.,0.,0. ,, 0.,0.,0. ,, 0.,1.,0. ,, -2.,1.,0.,, -2.,0.,2. ,, 0.,0.,2. ,, 0.,1.,2. ,, -2.,1.,2. /)
  nElems       =(/8,6,4/)               
  BCIndex      =(/6,0,0,2,4,7/)        
  elemtype     =108                   
  factor       =(/-1.2,1.5,1./)                ! element stretching 
  ! ===   upper right zone  ===
  Corner       =(/0.,0.,0. ,, 5.,0.,0. ,, 5.,1.,0. ,, 0.,1.,0.,, 0.,0.,2. ,, 5.,0.,2. ,, 5.,1.,2. ,, 0.,1.,2. /)
  nElems       =(/10,6,4/)               
  BCIndex      =(/6,3,5,2,0,7/)        
  elemtype     =108                   
  factor       =(/1.,1.5,1./)                !  element stretching
 
!================================================================================================================================= !
! BOUNDARY CONDITIONS
!================================================================================================================================= !
    BoundaryName=BC_slipwall                ! BC index 1 (from  position in parameterfile)
    BoundaryType=(/4,0,0,0/)                ! (/ Type, curveIndex, State, alpha /)
    BoundaryName=BC_upperwall               ! BC index 2
    BoundaryType=(/4,0,0,0/)
    BoundaryName=BC_lowerwall               ! BC index 3 
    BoundaryType=(/4,0,0,0/)
    BoundaryName=BC_inflow                  ! BC index 4
    BoundaryType=(/2,0,0,0/) 
    BoundaryName=BC_outflow                 ! BC index 5 
    BoundaryType=(/2,0,0,0/)  
    BoundaryName=BC_zminus                  ! BC index 6 periodic in z direction
    BoundaryType=(/1,0,0,1/)             
    BoundaryName=BC_zplus                   ! BC index 7 periodic in z direction
    BoundaryType=(/1,0,0,-1/)             
    vv=(/0.,0.,2./)                         ! vector for periodic BC

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_multiple_stretch | *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 |                                 3 | *CUSTOM | 
 |                         Corner |         Real array of size (  24) | *CUSTOM | -2.00-1.00 0.00 0.00-1.00 0.00 0.00 0.00
                                                                                 |  0.00-2.00 0.00 0.00-2.00-1.00 2.00 0.00
                                                                                 | -1.00 2.00 0.00 0.00 2.00-2.00 0.00 2.00
 |                        BCIndex |      Integer array of size (   6) | *CUSTOM |     6    1    3    0    4    7
 |                         nElems |      Integer array of size (   3) | *CUSTOM |     8    4    4
 |                             l0 |         Real array of size (   3) | DEFAULT |  0.00 0.00 0.00
 |                         factor |         Real array of size (   3) | *CUSTOM | -1.20 1.00 1.00
 |                       elemtype |                               108 | *CUSTOM | 
 |                         Corner |         Real array of size (  24) | *CUSTOM | -2.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00
                                                                                 |  0.00-2.00 1.00 0.00-2.00 0.00 2.00 0.00
                                                                                 |  0.00 2.00 0.00 1.00 2.00-2.00 1.00 2.00
 |                        BCIndex |      Integer array of size (   6) | *CUSTOM |     6    0    0    2    4    7
 |                         nElems |      Integer array of size (   3) | *CUSTOM |     8    6    4
 |                             l0 |         Real array of size (   3) | DEFAULT |  0.00 0.00 0.00
 |                         factor |         Real array of size (   3) | *CUSTOM | -1.20 1.50 1.00
 |                       elemtype |                               108 | *CUSTOM | 
 |                         Corner |         Real array of size (  24) | *CUSTOM |  0.00 0.00 0.00 5.00 0.00 0.00 5.00 1.00
                                                                                 |  0.00 0.00 1.00 0.00 0.00 0.00 2.00 5.00
                                                                                 |  0.00 2.00 5.00 1.00 2.00 0.00 1.00 2.00
 |                        BCIndex |      Integer array of size (   6) | *CUSTOM |     6    3    5    2    0    7
 |                         nElems |      Integer array of size (   3) | *CUSTOM |    10    6    4
 |                             l0 |         Real array of size (   3) | DEFAULT |  0.00 0.00 0.00
 |                         factor |         Real array of size (   3) | *CUSTOM |  1.00 1.50 1.00
 |                       elemtype |                               108 | *CUSTOM | 
 |                   preScaleMesh |                                 F | DEFAULT | 
 |                  postScaleMesh |                                 F | DEFAULT | 
 |                      meshScale |                       0.10000E+01 | DEFAULT | 
 |                    SpaceQuandt |                       0.10000E+00 | DEFAULT | 
 |                   BoundaryName |                       BC_slipwall | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     4    0    0    0
 |                   BoundaryName |                      BC_upperwall | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     4    0    0    0
 |                   BoundaryName |                      BC_lowerwall | *CUSTOM | 
 |                   BoundaryType |      Integer array of size (   4) | *CUSTOM |     4    0    0    0
 |                   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
 |                   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
 |                             vv |         Real array of size (   3) | *CUSTOM |  0.00 0.00 2.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
    -STRETCHING INFORMATION
      -nElems(:) :         8             4             4
      -l0(:)     : 0.4343490     0.2500000     0.5000000    
      -factor(:) : 0.8333333      1.000000      1.000000    
   build zone no.:           2
    -STRETCHING INFORMATION
      -nElems(:) :         8             6             4
      -l0(:)     : 0.4343490     0.4812030E-01 0.5000000    
      -factor(:) : 0.8333333      1.500000      1.000000    
   build zone no.:           3
    -STRETCHING INFORMATION
      -nElems(:) :        10             6             4
      -l0(:)     : 0.5000000     0.4812030E-01 0.5000000    
      -factor(:) :  1.000000      1.500000      1.000000    
 Number of Elements:          560
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE DEBUGMESH...
   #Elements          560
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_multiple_stretch_Debugmesh.vtu   DONE
    Mesh visualized for debug purposes in file : cartbox_multiple_stretch_Debugmesh
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .002s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE BC MESH...
   #BCSides          504
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_multiple_stretch_Debugmesh_BC.vtu   DONE
    Boundary mesh visualized for debug purposes in file : cartbox_multiple_stretch_Debugmesh_BC
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .004s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Mesh connect starts
Count sides, delete Null BCs and check periodic BCs...
-----------------------------------
number of sides          :         3360
number of Inner sides    :         2856
number of BC sides       :          504
number of periodic sides :          280
-----------------------------------
Insert periodic sides...
Eliminate multiple Nodes...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOBAL UNIQUE NODES ...
   All Nodes sorted...
   Number of nodes to check:         1485
    size of tolerance box:                    1
  Number of deleted nodes         640
  Number of unique nodes         845
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
Connect Conforming inner and periodic sides...
    -->         3136  sides of         3136   sides connected.
Mesh Connect completed with success.  
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .004s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD EDGES ...
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GLOBAL UNIQUE NODES ...
   All Nodes sorted...
   Number of nodes to check:          845
    size of tolerance box:                    1
  Number of deleted nodes           0
  Number of unique nodes         845
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          560
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_multiple_stretch_Debugmesh.vtu   DONE
    Mesh visualized for debug purposes in file : cartbox_multiple_stretch_Debugmesh
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .000s ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WRITING THE BC MESH...
   #BCSides          504
   WRITE DATA TO VTX XML BINARY (VTU) FILE... cartbox_multiple_stretch_Debugmesh_BC.vtu   DONE
    Boundary mesh visualized for debug purposes in file : cartbox_multiple_stretch_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        |      560
 118        |        0
 208        |        0
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .004s ]
DONE!   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   .   [ time: .021s ]
====================================================================================================================================
 HOPR successfully finished: Mesh "cartbox_multiple_stretch_mesh.h5" written to HDF5 file.
====================================================================================================================================