Skip to content

Commit

Permalink
FEM: ccx writer, use the new Abaqus writer parameter and fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Nov 25, 2017
1 parent f271e52 commit 2ee7245
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/FemInputWriterCcx.py
Expand Up @@ -77,7 +77,7 @@ def write_calculix_input_file(self):

def write_calculix_one_input_file(self):
timestart = time.clock()
self.femmesh.writeABAQUS(self.file_name)
self.femmesh.writeABAQUS(self.file_name, 1, False)

# reopen file with "append" and add the analysis definition
inpfile = open(self.file_name, 'a')
Expand Down Expand Up @@ -180,7 +180,7 @@ def write_calculix_splitted_input_file(self):
name = self.file_name[:-4]
include_name = self.main_file_name[:-4]

self.femmesh.writeABAQUS(name + "_Node_Elem_sets.inp")
self.femmesh.writeABAQUS(name + "_Node_Elem_sets.inp", 1, False)
inpfileNodesElem = open(name + "_Node_Elem_sets.inp", 'a')
inpfileNodesElem.write('\n***********************************************************\n')
inpfileNodesElem.close()
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/TestFem.py
Expand Up @@ -144,7 +144,7 @@ def test_writeAbaqus_precision(self):
seg2.addEdge([1, 2])

inp_file = temp_dir + '/seg2_mesh.inp'
seg2.writeABAQUS(inp_file)
seg2.writeABAQUS(inp_file, 1, False)

read_file = open(inp_file, 'r')
read_node_line = 'line was not found'
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/test_files/ccx/Flow1D_thermomech.inp
@@ -1,4 +1,5 @@
** written by FreeCAD inp file writer for CalculiX,Abaqus meshes
** highest dimension mesh elements only.

** Nodes
*Node, NSET=Nall
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/test_files/ccx/cube_frequency.inp
@@ -1,4 +1,5 @@
** written by FreeCAD inp file writer for CalculiX,Abaqus meshes
** highest dimension mesh elements only.

** Nodes
*Node, NSET=Nall
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/test_files/ccx/cube_static.inp
@@ -1,4 +1,5 @@
** written by FreeCAD inp file writer for CalculiX,Abaqus meshes
** highest dimension mesh elements only.

** Nodes
*Node, NSET=Nall
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/test_files/ccx/spine_thermomech.inp
@@ -1,4 +1,5 @@
** written by FreeCAD inp file writer for CalculiX,Abaqus meshes
** highest dimension mesh elements only.

** Nodes
*Node, NSET=Nall
Expand Down

0 comments on commit 2ee7245

Please sign in to comment.