def setUp(self):
     self.mesh = read_from_abaqus_inp(os.path.join(
         __location__, "mesh_test_files/n10-id1.inp"),
                                      verbose=0)
     self.mesh_aba = read_from_abaqus_inp(os.path.join(
         __location__, "mesh_test_files/n10_id1_from_abaq.inp"),
                                          verbose=0)
Example #2
0
    def test_export_to_abaqus(self):
        """Test Phons reader for neper inp files."""
        export_to_abaqus("test_file.inp", self.mesh, write_2d_elements=True)
        read_from_abaqus_inp("test_file.inp")
        export_to_abaqus("test_file_2.inp", self.mesh, write_2d_elements=True)

        assert (filecmp.cmp("test_file.inp", "test_file_2.inp"))
    def test_export_to_abaqus(self):
        """Test Phons reader for neper inp files."""
        export_to_abaqus("test_file.inp", self.mesh, write_2d_elements=True)
        read_from_abaqus_inp("test_file.inp")
        export_to_abaqus("test_file_2.inp", self.mesh, write_2d_elements=True)

        assert (filecmp.cmp("test_file.inp", "test_file_2.inp"))
 def setUp(self):
     self.mesh = read_from_abaqus_inp(os.path.join(__location__, "mesh_test_files/n10-id1.inp"), verbose=0)
     self.mesh_2d = read_from_abaqus_inp(os.path.join(__location__, "mesh_test_files/n10-id1_2d.inp"))
Example #5
0
from phon.io_tools.read.read_from_abaqus_inp import read_from_abaqus_inp
from phon.io_tools.write.export_to_abaqus import export_to_abaqus
from phon.mesh_tools.create_cohesive_elements import create_cohesive_elements

inputfile = "../test/mesh_test_files/n10-id1.inp"
mesh = read_from_abaqus_inp(inputfile, verbose=0)
create_cohesive_elements(mesh, 3)
export_to_abaqus("n10-id1_coh.inp", mesh, write_2d_elements=False)
Example #6
0
 def setUp(self):
     self.mesh = read_from_abaqus_inp(
         os.path.join(__location__, "mesh_test_files/n10-id1.inp"))