A set of FreeCAD files created with the GDML workbench - In Future will be used for Auto Testing.
-
GDMLExportDirectory.FCMacro
- Creates gdml exports in target directory for all FC files created with GDML workbench in source directory
-
GDMLImportDirectory.FCMacro
- For all gdml files in a directory import them into a FC document, then in a target directory create a saved FC file and an exported gdml version. The newsly exported gdml file can be checked against the original gdml file.
-
calcCenterOfMass.py
- Creates CofM and Moment of Inertia Calculations for selected World Volume
-
GDMLCOGcalcDirectory.py
- Perform CofM and Moment of Inertia Calcs for all FC files in a directory
load_gdml_color -m=batchFile.mac
( batchFile.mac same as initInit.mac minus /control/execture vis.mac )
see directory MH_G4_Examples / MH_G01
* Some testfiles use Fasteners Workbench - install via addon_manager
* File should have been recomputed and saved
* Install gawk - brew install gawk
-
create a branch
git branch testDate git checkout testDate -
run FC Macro
GDMLExportDirectory Source : FC_test_files Target : FC_exported_gdml -
run FC Macro
GDMLCOGcalcDirectory Source : FC_test_files Target : FC_COGs -
create outputs for Geant4 COG's
run script geant4COG.sh -
TODO run comparison script
Sources : FC_COGs and Geant4_COGs