Exemplo n.º 1
0
 def test_material_info(self):
     cellFields = ["density", "bulk_modulus", "shear_modulus", "maxwell_time"]
     for material in self.MATERIALS:
         filename = "output/{}-{}_info.h5".format(self.NAME, material)
         check_data(filename, self,
                    self.MATERIALS[material], cellFields=cellFields)
     return
Exemplo n.º 2
0
 def test_material_info(self):
     vertexFields = ["density", "bulk_modulus",
                     "shear_modulus", "gravitational_acceleration"]
     for material in self.MATERIALS:
         filename = "output/{}-{}_info.h5".format(self.NAME, material)
         check_data(filename, self,
                    self.MATERIALS[material], vertexFields=vertexFields)
Exemplo n.º 3
0
 def test_bcdirichlet_solution(self):
     vertexFields = ["displacement", "pressure"]
     for bc in self.DIRICHLET_BOUNDARIES:
         filename = "output/{}-{}.h5".format(self.NAME, bc)
         check_data(filename, self, self.BOUNDARIES[bc], vertexFields=vertexFields,
                    ratio_tolerance=ratio_tolerance, diff_tolerance=diff_tolerance)
     return
Exemplo n.º 4
0
 def test_material_solution(self):
     vertexFields = ["displacement", "pressure"]
     for material in self.MATERIALS:
         filename = "output/{}-{}.h5".format(self.NAME, material)
         check_data(filename, self, self.MATERIALS[material], vertexFields=vertexFields,
                    ratio_tolerance=ratio_tolerance, diff_tolerance=diff_tolerance)
     return
Exemplo n.º 5
0
 def test_material_solution(self):
     vertexFields = ["displacement"]
     cellFields = ["cauchy_strain", "cauchy_stress"]
     for material in self.MATERIALS:
         filename = "output/{}-{}.h5".format(self.NAME, material)
         check_data(
             filename, self, self.MATERIALS[material], vertexFields=vertexFields, cellFields=cellFields)
Exemplo n.º 6
0
 def test_bcneumann_solution(self):
     vertexFields = ["displacement"]
     for bc in self.NEUMANN_BOUNDARIES:
         filename = "output/{}-{}.h5".format(self.NAME, bc)
         check_data(filename, self,
                    self.BOUNDARIES[bc], vertexFields=vertexFields)
     return
Exemplo n.º 7
0
 def test_bcdirichlet_solution(self):
     vertexFields = ["displacement"]
     for bc in self.DIRICHLET_BOUNDARIES:
         filename = "output/{}-{}.h5".format(self.NAME, bc)
         check_data(filename, self,
                    self.BOUNDARIES[bc], vertexFields=vertexFields)
     return
Exemplo n.º 8
0
 def test_bcneumann_info(self):
     cellFields = ["initial_amplitude"]
     for bc in self.NEUMANN_BOUNDARIES:
         self.exactsoln.key = bc
         filename = "output/{}-{}_info.h5".format(self.NAME, bc)
         check_data(filename, self,
                    self.BOUNDARIES[bc], cellFields=cellFields)
     return
Exemplo n.º 9
0
 def test_bcneumann_info(self):
     vertexFields = ["initial_amplitude"]
     for bc in self.NEUMANN_BOUNDARIES:
         self.exactsoln.key = bc
         filename = "output/{}-{}_info.h5".format(self.NAME, bc)
         check_data(filename, self, self.BOUNDARIES[bc], vertexFields=vertexFields,
                    ratio_tolerance=ratio_tolerance, diff_tolerance=diff_tolerance)
     return
Exemplo n.º 10
0
 def test_material_info(self):
     cellFields = ["solid_density", "fluid_density", "fluid_viscosity", "shear_modulus",
                     "drained_bulk_modulus", "biot_coefficient", "isotropic_permeability", "porosity"]
     for material in self.MATERIALS:
         filename = "output/{}-{}_info.h5".format(self.NAME, material)
         check_data(filename, self, self.MATERIALS[material], cellFields=cellFields,
                    ratio_tolerance=ratio_tolerance, diff_tolerance=diff_tolerance)
     return
Exemplo n.º 11
0
 def test_boundary_solution(self):
     vertexFields = ["displacement"]
     for bc in self.OUTPUT_BOUNDARIES:
         filename = "output/{}-{}.h5".format(self.NAME, bc)
         check_data(filename,
                    self,
                    self.BOUNDARIES[bc],
                    vertexFields=vertexFields)
Exemplo n.º 12
0
 def test_bcneumann_info(self):
     vertexFields = ["initial_amplitude",
                     "rate_start_time", "rate_amplitude"]
     for bc in self.NEUMANN_BOUNDARIES:
         self.exactsoln.key = bc
         filename = "output/{}-{}_info.h5".format(self.NAME, bc)
         check_data(filename, self,
                    self.BOUNDARIES[bc], vertexFields=vertexFields)
Exemplo n.º 13
0
 def test_bcdirichlet_info(self):
     cellFields = ["initial_amplitude"]
     for bc in self.DIRICHLET_BOUNDARIES:
         filename = "output/{}-{}_info.h5".format(self.NAME, bc)
         check_data(filename,
                    self,
                    self.BOUNDARIES[bc],
                    cellFields=cellFields)
Exemplo n.º 14
0
 def test_bcdirichlet_info(self):
     vertexFields = ["initial_amplitude"]
     for bc in self.DIRICHLET_BOUNDARIES:
         self.exactsoln.key = bc
         filename = "output/{}-{}_info.h5".format(self.NAME, bc)
         check_data(filename,
                    self,
                    self.BOUNDARIES[bc],
                    vertexFields=vertexFields)
Exemplo n.º 15
0
 def test_domain_solution(self):
     filename = "output/{}-domain.h5".format(self.NAME)
     vertexFields = ["displacement", "pressure"]
     check_data(filename,
                self,
                self.DOMAIN,
                vertexFields=vertexFields,
                ratio_tolerance=ratio_tolerance,
                diff_tolerance=diff_tolerance)
     return
Exemplo n.º 16
0
 def test_domain_solution(self):
     filename = "output/{}-domain.h5".format(self.NAME)
     vertexFields = ["displacement"]
     check_data(filename, self, self.DOMAIN, vertexFields=vertexFields)
Exemplo n.º 17
0
 def test_point_solution(self):
     vertexFields = ["displacement"]
     filename = f"output/{self.NAME}-points.h5"
     check_data(filename, self, self.POINTS, vertexFields=vertexFields)