Commit Graph

29 Commits

Author SHA1 Message Date
Przemo Firszt
d5cf69b646 FEM: Make sure it's clear what failed when ccx is not set and cannot be found
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:02 +02:00
Przemo Firszt
cf7f82c48a FEM: Move known_analysis_type definition to class definition
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:57 +02:00
Przemo Firszt
cfc2a4d1f2 FEM: Fix invalid exception raise call
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:55 +02:00
Przemo Firszt
ac0f3a650d FEM: Test ccx binary before use
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:54 +02:00
Przemo Firszt
554f4f5fc9 FEM: Add documentation to FemTools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:54 +02:00
Bernd Hahnebach
705c339f21 FEM: added object FemShellThickness and FemBeamSection to enable shell and beam analysises 2015-09-23 20:11:11 -03:00
Przemo Firszt
d29f3fa276 FEM: FemTools - add function documentation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
8cd0939fff FEM: Update inp_file_name after base_name or working_directory change
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
ee7beea983 FEM: Fix file paths + tidy up naming
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
b25d2cd54d FEM: FemTest rework
- move test files to a separate directory
- use real life model to generate .inp files (model included)
- change format of csv node/volume files to allow direct copy&paste from .inp files
- use pre prepared real-life .dat & .frd files to test analysis results loading functions
- much more fine grained error reporting
- remove empty lines for output
- add helper function to print to console

Example run of the FEM test:

--------------- Start of FEM tests ---------------
Checking FEM new analysis...
Checking FEM new mesh...
sh: SMDS_MemoryLimit: command not found
Checking FEM new material...
Checking FEM new fixed constraint...
Checking FEM new force constraint...
Checking FEM new pressure constraint...
Checking FEM inp file prerequisites...
Checking FEM inp file write...
Setting up working directory /tmp/FEM_static
Writing /tmp/FEM_static/Mesh.inp for static analysis
Comparing /home/przemo/software/FreeCAD/build/Mod/Fem/test_files/cube_static.inp to /tmp/FEM_static/Mesh.inp
Setting up working directory to /home/przemo/software/FreeCAD/build/Mod/Fem/test_files in order to read simulated calculations
Setting base name to read test cube_static.frd file...
Checking FEM frd file read from static analysis...
Result object created as "Results"
Reading stats from result object for static analysis...
Setting analysis type to 'frequency"
Setting up working directory /tmp/FEM_frequency
Writing /tmp/FEM_frequency/Mesh.inp for frequency analysis
Comparing /home/przemo/software/FreeCAD/build/Mod/Fem/test_files/cube_frequency.inp to /tmp/FEM_frequency/Mesh.inp
Setting working directory to read simulated calculations...
Setting base name to read test cube_frequency.frd file...
Checking FEM frd file read from frequency analysis...
Last result object created as "Mode_10_results"
Reading stats from result object for frequency analysis...
--------------- End of FEM tests ---------------

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-21 11:16:03 -03:00
Przemo Firszt
25b501e215 FEM: Add reset_all funcion to FemTools
reset_all groups purge_results, reset_mesh_color and reset_mesh_deformation

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:50 +02:00
Przemo Firszt
0ba28a5ba6 FEM: Add function documentation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:49 +02:00
Przemo Firszt
89d795ff90 FEM: Add option to limit max value of result being used to color FEM mesh
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:48 +02:00
Przemo Firszt
b516e35b19 FEM: Add frequency analysis to FEM wb
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:47 +02:00
Przemo Firszt
d52ad7e4bf FEM: Raise exception on use or load of non existing results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:46 +02:00
Przemo Firszt
b85c4430bd FEM: Fix invalid stdout/stderr variable names
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:13 -03:00
Przemo Firszt
f5ad8ca415 FEM: Don't import FemGui when it's not required
This is part of preparation to create automated FEM wb tests

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
bf1accec06 FEM: get noisy if ccx produces something in stderr
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:51 +02:00
Przemo Firszt
f6bf3f3055 FEM: show ccx exit code if the code is not 0
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:51 +02:00
Przemo Firszt
c87c15946c FEM: raise exception is no analysis is specified or found in __init__
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:50 +02:00
Przemo Firszt
9a7151863c FEM: reset results_present on purge_results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:49 +02:00
Przemo Firszt
3d94464ba4 FEM: add use_results to allow selecting results by name
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:49 +02:00
Przemo Firszt
e850604cdf FEM: Rename set_result_type to show_result
show_result by default shows Von Mises strass

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:48 +02:00
Przemo Firszt
52c453bdba FEM: add show_displacement to FemTools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:47 +02:00
Przemo Firszt
ff742beb97 FEM: Add multi-thread calcs
Slightly modified code by kwahoo
2015-07-06 19:21:46 +02:00
Przemo Firszt
7f9e50a22b FEM: Allow to run inp writing/ccx in separate thread
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:45 +02:00
Przemo Firszt
4c4e76aa2b FEM: Use check_prerequisites from FemTools
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:44 +02:00
Przemo Firszt
3187141dfe FEM: move writing inp file to FemTools module
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:44 +02:00
Przemo Firszt
e0956f67f3 FEM: Add basic FemTools module
That module will handle in the future all non-gui related features
that are currently in MechanicalAnalysis.py. It will allow easier
python scripting and greater flexibility when creating new FEM wb
features.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:43 +02:00