FEM: code formating: trailing whitespaces, tabs at line start and flake8

This commit is contained in:
Bernd Hahnebach 2016-08-02 08:44:07 +02:00 committed by wmayer
parent 5a2a73b55e
commit 4d778390d4
3 changed files with 28 additions and 28 deletions

View File

@ -144,13 +144,13 @@ SET(FemTests_SRCS
test_files/ccx/cube_static.frd test_files/ccx/cube_static.frd
test_files/ccx/cube_static_expected_values test_files/ccx/cube_static_expected_values
test_files/ccx/cube.fcstd test_files/ccx/cube.fcstd
test_files/ccx/spine_points.csv test_files/ccx/spine_points.csv
test_files/ccx/spine_volumes.csv test_files/ccx/spine_volumes.csv
test_files/ccx/spine_thermomech.inp test_files/ccx/spine_thermomech.inp
test_files/ccx/spine_thermomech.dat test_files/ccx/spine_thermomech.dat
test_files/ccx/spine_thermomech.frd test_files/ccx/spine_thermomech.frd
test_files/ccx/spine_thermomech_expected_values test_files/ccx/spine_thermomech_expected_values
test_files/ccx/spine_thermomech.fcstd test_files/ccx/spine_thermomech.fcstd
) )
SET(FemBase_SRCS SET(FemBase_SRCS

View File

@ -104,14 +104,13 @@ INSTALL(
test_files/ccx/cube_static.frd test_files/ccx/cube_static.frd
test_files/ccx/cube_static_expected_values test_files/ccx/cube_static_expected_values
test_files/ccx/cube.fcstd test_files/ccx/cube.fcstd
test_files/ccx/spine_points.csv test_files/ccx/spine_points.csv
test_files/ccx/spine_volumes.csv test_files/ccx/spine_volumes.csv
test_files/ccx/spine_thermomech.inp test_files/ccx/spine_thermomech.inp
test_files/ccx/spine_thermomech.dat test_files/ccx/spine_thermomech.dat
test_files/ccx/spine_thermomech.frd test_files/ccx/spine_thermomech.frd
test_files/ccx/spine_thermomech_expected_values test_files/ccx/spine_thermomech_expected_values
test_files/ccx/spine_thermomech.fcstd test_files/ccx/spine_thermomech.fcstd
DESTINATION DESTINATION
Mod/Fem/test_files/ccx Mod/Fem/test_files/ccx
) )

View File

@ -365,9 +365,9 @@ class TherMechFemTest(unittest.TestCase):
mat['YoungsModulus'] = "200000 MPa" mat['YoungsModulus'] = "200000 MPa"
mat['PoissonRatio'] = "0.30" mat['PoissonRatio'] = "0.30"
mat['Density'] = "7900 kg/m^3" mat['Density'] = "7900 kg/m^3"
mat['ThermalConductivity'] = "43.27 W/m/K" #SvdW: Change to Ansys model values mat['ThermalConductivity'] = "43.27 W/m/K" # SvdW: Change to Ansys model values
mat['ThermalExpansionCoefficient'] = "12 um/m/K" mat['ThermalExpansionCoefficient'] = "12 um/m/K"
mat['SpecificHeat'] = "500 J/kg/K" #SvdW: Change to Ansys model values mat['SpecificHeat'] = "500 J/kg/K" # SvdW: Change to Ansys model values
self.new_material_object.Material = mat self.new_material_object.Material = mat
def create_fixed_constraint(self): def create_fixed_constraint(self):
@ -385,7 +385,7 @@ class TherMechFemTest(unittest.TestCase):
def create_heatflux_constraint(self): def create_heatflux_constraint(self):
self.heatflux_constraint = self.active_doc.addObject("Fem::ConstraintHeatflux", "FemConstraintHeatflux") self.heatflux_constraint = self.active_doc.addObject("Fem::ConstraintHeatflux", "FemConstraintHeatflux")
self.heatflux_constraint.References = [(self.box, "Face3"),(self.box, "Face4"),(self.box, "Face5"),(self.box, "Face6")] self.heatflux_constraint.References = [(self.box, "Face3"), (self.box, "Face4"), (self.box, "Face5"), (self.box, "Face6")]
self.heatflux_constraint.AmbientTemp = 255.3722 self.heatflux_constraint.AmbientTemp = 255.3722
self.heatflux_constraint.FilmCoef = 5.678 self.heatflux_constraint.FilmCoef = 5.678
@ -519,6 +519,7 @@ class TherMechFemTest(unittest.TestCase):
FreeCAD.closeDocument("TherMechFemTest") FreeCAD.closeDocument("TherMechFemTest")
pass pass
# helpers # helpers
def open_cube_test(): def open_cube_test():
cube_file = test_file_dir + '/cube.fcstd' cube_file = test_file_dir + '/cube.fcstd'