Skip to content

Commit

Permalink
commonxpath
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Oct 24, 2024
1 parent 89f3730 commit 9eec5cb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
15 changes: 8 additions & 7 deletions ceasiompy/AeroFrame/__specs__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from ceasiompy.utils.moduleinterfaces import CPACSInOut
from pathlib import Path

from ceasiompy.utils.commonxpath import (
CEASIOMPY_XPATH,
AEROFRAME_SETTINGS,
AEROPERFORMANCE_XPATH,
AVL_AEROMAP_UID_XPATH,
AVL_PLOT_XPATH,
AVL_VORTEX_DISTR_XPATH,
AVL_AEROMAP_UID_XPATH,
AEROPERFORMANCE_XPATH,
CEASIOMPY_XPATH,
FRAMAT_MATERIAL_XPATH,
FRAMAT_SECTION_XPATH,
FRAMAT_MESH_XPATH,
AEROFRAME_SETTINGS
FRAMAT_SECTION_XPATH,
)
from pathlib import Path
from ceasiompy.utils.moduleinterfaces import CPACSInOut

# ===== Module Status =====
# True if the module is active
Expand Down
2 changes: 1 addition & 1 deletion ceasiompy/PyTornado/__specs__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# ===== Module Status =====
# True if the module is active
# False if the module is disabled (not working or not ready)
module_status = True
module_status = False

# ===== Results directory path =====

Expand Down
11 changes: 11 additions & 0 deletions ceasiompy/utils/commonxpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,14 @@
AVL_PLOT_XPATH = AVL_XPATH + "/SavePlots"
AVL_FUSELAGE_XPATH = AVL_XPATH + "/IntegrateFuselage"
AVL_VORTEX_DISTR_XPATH = AVL_XPATH + "/VortexDistribution"

# FramAT
FRAMAT_XPATH = CEASIOMPY_XPATH + "/structure/FramAT"
FRAMAT_MATERIAL_XPATH = FRAMAT_XPATH + "/MaterialProperties"
FRAMAT_SECTION_XPATH = FRAMAT_XPATH + "/SectionProperties"
FRAMAT_MESH_XPATH = FRAMAT_XPATH + "/BeamMesh"
FRAMAT_RESULTS_XPATH = FRAMAT_XPATH + "/Results"

# AeroFrame
AEROFRAME_XPATH = CEASIOMPY_XPATH + "/aeroelasticity/AeroFrame"
AEROFRAME_SETTINGS = AEROFRAME_XPATH + "/Settings"

0 comments on commit 9eec5cb

Please sign in to comment.