TestFem Namespace Reference

Classes

class  FemTest
 
class  TherMechFemTest
 

Functions

def compare_inp_files (file_name1, file_name2)
 
def compare_stats (fea, stat_file=None)
 
def create_test_results ()
 
def fcc_print (message)
 
def force_unix_line_ends (line_list)
 
def run_fem_unittests ()
 

Variables

string frequency_analysis_dir = temp_dir+'/FEM_frequency'
 
string frequency_analysis_inp_file = test_file_dir+'/'
 
string frequency_base_name = 'cube_frequency'
 
string frequency_expected_values = test_file_dir+"/cube_frequency_expected_values"
 
string frequency_save_fc_file = frequency_analysis_dir+'/'
 
 home_path = FreeCAD.getHomePath()
 
string mesh_name = 'Mesh'
 
string mesh_points_file = test_file_dir+'/mesh_points.csv'
 
string mesh_volumes_file = test_file_dir+'/mesh_volumes.csv'
 
string spine_points_file = test_file_dir+'/spine_points.csv'
 
string spine_volumes_file = test_file_dir+'/spine_volumes.csv'
 
string static_analysis_dir = temp_dir+'/FEM_static'
 
string static_analysis_inp_file = test_file_dir+'/'
 
string static_base_name = 'cube_static'
 
string static_expected_values = test_file_dir+"/cube_static_expected_values"
 
string static_save_fc_file = static_analysis_dir+'/'
 
string temp_dir = tempfile.gettempdir()+'/FEM_unittests'
 
string test_file_dir = home_path+'Mod/Fem/test_files/ccx'
 
string thermomech_analysis_dir = temp_dir+'/FEM_thermomech'
 
string thermomech_analysis_inp_file = test_file_dir+'/'
 
string thermomech_base_name = 'spine_thermomech'
 
string thermomech_expected_values = test_file_dir+"/spine_thermomech_expected_values"
 
string thermomech_save_fc_file = thermomech_analysis_dir+'/'
 

Function Documentation

def TestFem.compare_inp_files (   file_name1,
  file_name2 
)
def TestFem.compare_stats (   fea,
  stat_file = None 
)
def TestFem.create_test_results ( )

References run_fem_unittests().

def TestFem.force_unix_line_ends (   line_list)

Referenced by compare_inp_files(), and compare_stats().

def TestFem.run_fem_unittests ( )

Referenced by create_test_results().

Variable Documentation

string TestFem.frequency_analysis_dir = temp_dir+'/FEM_frequency'
string TestFem.frequency_analysis_inp_file = test_file_dir+'/'
string TestFem.frequency_base_name = 'cube_frequency'
string TestFem.frequency_expected_values = test_file_dir+"/cube_frequency_expected_values"
string TestFem.frequency_save_fc_file = frequency_analysis_dir+'/'
TestFem.home_path = FreeCAD.getHomePath()
string TestFem.mesh_name = 'Mesh'
string TestFem.mesh_points_file = test_file_dir+'/mesh_points.csv'
string TestFem.mesh_volumes_file = test_file_dir+'/mesh_volumes.csv'
string TestFem.spine_points_file = test_file_dir+'/spine_points.csv'
string TestFem.spine_volumes_file = test_file_dir+'/spine_volumes.csv'
string TestFem.static_analysis_dir = temp_dir+'/FEM_static'
string TestFem.static_analysis_inp_file = test_file_dir+'/'
string TestFem.static_base_name = 'cube_static'
string TestFem.static_expected_values = test_file_dir+"/cube_static_expected_values"
string TestFem.static_save_fc_file = static_analysis_dir+'/'
string TestFem.temp_dir = tempfile.gettempdir()+'/FEM_unittests'
string TestFem.test_file_dir = home_path+'Mod/Fem/test_files/ccx'
string TestFem.thermomech_analysis_dir = temp_dir+'/FEM_thermomech'
string TestFem.thermomech_analysis_inp_file = test_file_dir+'/'
string TestFem.thermomech_base_name = 'spine_thermomech'
string TestFem.thermomech_expected_values = test_file_dir+"/spine_thermomech_expected_values"
string TestFem.thermomech_save_fc_file = thermomech_analysis_dir+'/'