Case3 Definition of a non-regular grid (Grid type 3)

 

The data files for the project are in directory: SpatVar_001\Exercises\Case 3\Data. Look for ! TODO  text in the datafile and follow the instructions.

 

In this exercise the Grid from Case 2 will be modified to define a non-regular grid. To perform this exercise modify the data as shown below. Grid data can be copied from excel file "SpatVar_001_case3.xlsx" .

 

Include

Data File

 

 

* Include

! ---------------------------------

 Filename "porosity_SpatVar_001_case3.spat"          

 

1The included file name should point to the edited .spat file (ending with suffix _case3).

 

 

 

Spatial_grid

Data File

 

 

* Spatial_grid    NUM=1

! ----------------------------------------

 Name        "Porosity_Spatial"

 Type                   "Grid3"

 Num_cells_x                 10

 Num_cells_y                  4

 Num_cells_z                  8

 Nodal_variables   IDM=2

  "Porosity"  

 "P_strnv"

 Grid_coordinates   IDM=3  JDM=495

  0     0    0

  800   0    0

  1200  0    0

  2600  0    0

    .

    .

    .

  8000        4000        4000

 Point_values   IDM=2   JDM=495

  0.05     -0.553652881

  0.049    -0.554013553

  0.0485   -0.554194813

  0.04675  -0.554852512    

    .

    .

    .  

  0.390672 -0.159889195

 

1The grid definition is identical to case 2 except some Grid_coordinates which are modified to define a non-regular grid (see for example the bold coordinates on the left)

 

 

 

 

Results

The result files for the project are in directory: SpatVar_001\Case3\Results. It can be seen that the grid has cells with non constant size and with non-regular shape. The results however are identical to Cases 1 and 2.

 

SpatVar_001_Case3_Results

 

 

Defined spatial grid with porosity values (left). Assigned porosity element values to the model (right).