This adds functionality to use GMG structures as input for pTatin simulations.
For this we add two new data structures.
Q1Data is a hexahedral mesh with cell and vertex data info. It is in many ways similar to the CartData structure but also has space to hold cellfields.
FEData is a general finite element data structure that holds the coordinates of the vertices and the connectivity of the mesh, along with cell and vertex field data. It can be generated from Q1Data:
julia> fe_data = convert2FEData(q1_data)
FEData{3,8}
elements : 567
vertices : 800
x ϵ [ 1.0 : 10.0]
y ϵ [ 1.0 : 10.0]
z ϵ [ 1.0 : 10.0]
fields : (:Z,)
cellfields :
You can use the addfield function to add either cell or vertex fields to FEData or Q1Data structures.
A FEData structure can be saved to disk in a format that can be read with pTatin:
julia> write_pTatin_mesh(fe_data)
Wrote pTatin mesh : md.bin
Wrote pTatin field : Z_vertex.bin
This adds functionality to use GMG structures as input for pTatin simulations. For this we add two new data structures.
Q1Data
is a hexahedral mesh with cell and vertex data info. It is in many ways similar to theCartData
structure but also has space to hold cellfields.FEData
is a general finite element data structure that holds the coordinates of the vertices and the connectivity of the mesh, along with cell and vertex field data. It can be generated fromQ1Data
:You can use the
addfield
function to add either cell or vertex fields toFEData
orQ1Data
structures.A
FEData
structure can be saved to disk in a format that can be read with pTatin:cc: @anthony-jourdon, @laetitialp