adding poi temp

This commit is contained in:
jeremias
2021-04-02 13:11:34 +02:00
parent 74785679cb
commit 4764bb4bb8
31 changed files with 315 additions and 29 deletions
+6 -6
View File
@@ -51,12 +51,12 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
with open(inputfile_path) as file: with open(inputfile_path) as file:
inputfile = yaml.full_load(file) inputfile = yaml.full_load(file)
#true_val = [10,250,250,250,30]
true_values = { true_values = {
3: 10, 3: 2400,
4: 60, 4: 4200,
5: 220, 5: 11000,
6: 160, 6: 7800,
2: 100 2: 100
} }
@@ -71,7 +71,7 @@ def plot_parameters(dat, input_file, deparameterize=False, ref=None):
for bnd_set in inputfile['boundary_conditions']: for bnd_set in inputfile['boundary_conditions']:
if bnd_c['id'] == bnd_set['id']: if bnd_c['id'] == bnd_set['id']:
ids.append(bnd_c['id']) ids.append(bnd_c['id'])
current_val.append(bnd_set['value'][0]) current_val.append(bnd_set['parameters']['R_d'])
labels.append('$R_' + str(bnd_c['id'])) labels.append('$R_' + str(bnd_c['id']))
elif 'dirichlet' in bnd_c['type']: elif 'dirichlet' in bnd_c['type']:
+29 -23
View File
@@ -4,10 +4,10 @@ mesh: './meshes/coaortaH1.h5'
fluid: fluid:
density: 1.2 density: 1.2
dynamic_viscosity: 0.035 dynamic_viscosity: 0.035
stokes: False stokes: True
io: io:
write_path: 'results/aorta' write_path: 'results/aorta_1ms'
restart: restart:
path: '' # './projects/nse_coa3d/results/test_restart2/' path: '' # './projects/nse_coa3d/results/test_restart2/'
time: 0 time: 0
@@ -32,34 +32,39 @@ boundary_conditions:
- -
id: 3 id: 3
type: 'windkessel' type: 'windkessel'
#value: [10,0,0] parameters:
value: [10,0.0008,2400] R_p: 10
p0: [80,1333.223874] C: 0.0008
#p0: [0,1333.223874] R_d: 2400
p0: 80
conv: 1333.223874
- -
id: 4 id: 4
type: 'windkessel' type: 'windkessel'
#value: [60,0,0] parameters:
#value: [250,0,0] R_p: 60
value: [60,0.00034,4200] C: 0.00034
p0: [80,1333.223874] R_d: 4200
#p0: [0,1333.223874] p0: 80
conv: 1333.223874
- -
id: 5 id: 5
type: 'windkessel' type: 'windkessel'
#value: [220,0,0] parameters:
#value: [250,0,0] R_p: 220
value: [220,0.00034,11000] C: 0.00034
p0: [80,1333.223874] R_d: 11000
#p0: [0,1333.223874] p0: 80
conv: 1333.223874
- -
id: 6 id: 6
type: 'windkessel' type: 'windkessel'
#value: [160,0,0] parameters:
#value: [250,0,0] R_p: 160
value: [160,0.00034,7800] C: 0.00034
p0: [80,1333.223874] R_d: 7800
#p0: [0,1333.223874] p0: 80
conv: 1333.223874
timemarching: timemarching:
velocity_pressure_coupling: 'fractionalstep' # monolithic, fractionalstep velocity_pressure_coupling: 'fractionalstep' # monolithic, fractionalstep
@@ -148,13 +153,14 @@ estimation:
measurements: measurements:
- -
mesh: '/home/yeye/NuMRI/kalman/meshes/coaortaH3_leo2.0.h5' #mesh: '/home/yeye/NuMRI/kalman/meshes/coaortaH3_leo2.0.h5'
mesh: './meshes/coaortaH1.h5'
fe_degree: 1 fe_degree: 1
xdmf_file: 'measurements/aorta/u_all.xdmf' xdmf_file: 'measurements/aorta/u_all.xdmf'
file_root: 'measurements/aorta/u{i}.h5' file_root: 'measurements/aorta/u{i}.h5'
indices: 0 # indices of checkpoints to be processed. 0 == all indices: 0 # indices of checkpoints to be processed. 0 == all
velocity_direction: ~ velocity_direction: ~
noise_stddev: 500 # standard deviation of Gaussian noise noise_stddev: 0 # standard deviation of Gaussian noise
roukf: roukf:
particles: 'simplex' # unique or simplex particles: 'simplex' # unique or simplex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+140
View File
@@ -0,0 +1,140 @@
<?xml version="1.0"?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="3.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<Domain>
<Grid Name="TimeSeries_pressure" GridType="Collection" CollectionType="Temporal">
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/0/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/0/mesh/geometry</DataItem>
</Geometry>
<Time Value="0.000000000000000e+00" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/0</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/1/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/1/mesh/geometry</DataItem>
</Geometry>
<Time Value="9.000000000000000e+00" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/1</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/2/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/2/mesh/geometry</DataItem>
</Geometry>
<Time Value="1.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/2</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/3/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/3/mesh/geometry</DataItem>
</Geometry>
<Time Value="2.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/3</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/4/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/4/mesh/geometry</DataItem>
</Geometry>
<Time Value="3.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/4</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/5/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/5/mesh/geometry</DataItem>
</Geometry>
<Time Value="4.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/5</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/6/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/6/mesh/geometry</DataItem>
</Geometry>
<Time Value="5.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/6</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/7/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/7/mesh/geometry</DataItem>
</Geometry>
<Time Value="6.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/7</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/8/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/8/mesh/geometry</DataItem>
</Geometry>
<Time Value="7.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/8</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/9/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/9/mesh/geometry</DataItem>
</Geometry>
<Time Value="8.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/9</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">p.h5:/Mesh/10/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">p.h5:/Mesh/10/mesh/geometry</DataItem>
</Geometry>
<Time Value="9.900000000000000e+01" />
<Attribute Name="pressure" AttributeType="Scalar" Center="Node">
<DataItem Dimensions="2466 1" Format="HDF">p.h5:/VisualisationVector/10</DataItem>
</Attribute>
</Grid>
</Grid>
</Domain>
</Xdmf>
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+140
View File
@@ -0,0 +1,140 @@
<?xml version="1.0"?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="3.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<Domain>
<Grid Name="TimeSeries_velocity" GridType="Collection" CollectionType="Temporal">
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/0/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/0/mesh/geometry</DataItem>
</Geometry>
<Time Value="0.000000000000000e+00" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/0</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/1/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/1/mesh/geometry</DataItem>
</Geometry>
<Time Value="9.000000000000000e+00" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/1</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/2/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/2/mesh/geometry</DataItem>
</Geometry>
<Time Value="1.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/2</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/3/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/3/mesh/geometry</DataItem>
</Geometry>
<Time Value="2.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/3</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/4/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/4/mesh/geometry</DataItem>
</Geometry>
<Time Value="3.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/4</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/5/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/5/mesh/geometry</DataItem>
</Geometry>
<Time Value="4.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/5</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/6/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/6/mesh/geometry</DataItem>
</Geometry>
<Time Value="5.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/6</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/7/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/7/mesh/geometry</DataItem>
</Geometry>
<Time Value="6.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/7</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/8/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/8/mesh/geometry</DataItem>
</Geometry>
<Time Value="7.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/8</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/9/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/9/mesh/geometry</DataItem>
</Geometry>
<Time Value="8.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/9</DataItem>
</Attribute>
</Grid>
<Grid Name="mesh" GridType="Uniform">
<Topology NumberOfElements="12332" TopologyType="Tetrahedron" NodesPerElement="4">
<DataItem Dimensions="12332 4" NumberType="UInt" Format="HDF">u.h5:/Mesh/10/mesh/topology</DataItem>
</Topology>
<Geometry GeometryType="XYZ">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/Mesh/10/mesh/geometry</DataItem>
</Geometry>
<Time Value="9.900000000000000e+01" />
<Attribute Name="velocity" AttributeType="Vector" Center="Node">
<DataItem Dimensions="2466 3" Format="HDF">u.h5:/VisualisationVector/10</DataItem>
</Attribute>
</Grid>
</Grid>
</Domain>
</Xdmf>