Configuration¶
Default configuration¶
-
class
postprocess.config.default_config.
EnvConfig
(language='english', resultsPath='tmp_results/', intForcPath='internalForces/', verifPath='verifications/', reportPath='./', reportResultsPath='annex/', grWidth='\linewidth', fNameMark='env_config.py')¶ Bases:
postprocess.output_styles.OutputStyle
Generic configuration of XC environment variables.
Variables: grWidth – size of the graphics to be included in the annex -
makedirs
(pth)¶ - Recursive directory creation function. Like mkdir(), but
- makes all intermediate-level directories needed to contain
the leaf directory.
Parameters: path – the path to create.
-
open
(fileName, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)¶ Open file and return a corresponding file object..
Parameters: - fileName – the path and name of the file.
- mode – see Python documentation for open built-in function.
- bufferting – see Python documentation for open built-in function.
- encoding – see Python documentation for open built-in function.
- errors – see Python documentation for open built-in function.
- newline – see Python documentation for open built-in function.
- closefd – see Python documentation for open built-in function.
- opener – see Python documentation for open built-in function.
-
-
class
postprocess.config.default_config.
ProjectDirTree
(resultsPath, intForcPath, verifPath, reportPath, reportResultsPath, fNameMark='env_config.py')¶ Bases:
object
Paths to project directories.
Variables: - intForcPath – relative path from the model path of the directory where results of internal forces are placed.
- verifPath – relative path from the model path of the directory where results of limit state verifications are placed
- reportPath – relative path of the directory where calculation report files are placed
- :ivar reportResultsPath : relative path from reportPath of the directory where to place
- graphic and text files to be included in the report
-
createTree
()¶ Create the project directory tree.
-
getFullConnectionsResultsPath
()¶ Return the relative path for the fatigue verification graphics files.
-
getFullGraphicsPath
()¶ Return the full path for the graphic files.
-
getFullReactionsResultsPath
()¶ Return the relative path for the fatigue verification graphics files.
-
getFullReportPath
()¶ Return the full path for the report files.
-
getFullResultsPath
()¶ Return the full path for the files that contains results.
-
getFullVerifPath
()¶ Return the full path for the limit state checking files.
-
getInternalForcesResultsPath
()¶ Return the path for the files that contains the internal forces.
-
getPathList
()¶ Create the project directory tree.
-
getReactionsResultsPath
()¶ Return the path for the files that contains the reactions.
-
getReportCrackFreqFile
()¶ Return the path of the crack verification report file (frequent loads).
-
getReportCrackFreqGrPath
()¶ Return the path for the crack verification graphics files (frequent loads).
-
getReportCrackQpermFile
()¶ Return the path of the crack verification report file (quasi-permanent loads).
-
getReportCrackQpermGrPath
()¶ Return the path for the crack verification graphics files (quasi-permanent loads).
-
getReportFatigueFile
()¶ Return the path of the fatigue verification report file.
-
getReportFatigueGrPath
()¶ Return the path for the fatigue verification graphics files.
-
getReportFile
(limitStateLabel)¶ - Return the path of the verification report file
- for the limit state argument.
Parameters: limitStateLabel – label identifying the limit state.
-
getReportGrPath
(limitStateLabel)¶ - Return the full path for the verification graphics files
- for the limit state argument.
Parameters: limitStateLabel – label identifying the limit state.
-
getReportLoadsFile
()¶ Return the path for the load report file.
-
getReportLoadsGrPath
()¶ Return the path for the load graphic files.
-
getReportNormStrFile
()¶ Return the path of the normal stresses verification report file.
-
getReportNormStrGrPath
()¶ Return the path for the normal stresses verification graphics files.
-
getReportRltvGrPath
(limitStateLabel)¶ - Return the relative path for the verification graphics files
- for the limit state argument.
Parameters: limitStateLabel – label identifying the limit state.
-
getReportSectionsFile
()¶ Return the full path for the sections report file.
-
getReportSectionsGrPath
()¶ Return the full path for the sections graphic files.
-
getReportShearFile
()¶ Return the path of the shear verification report file.
-
getReportShearGrPath
()¶ Return the path for the shear verification graphics files.
-
getReportSimplLCFile
()¶
-
getReportSimplLCGrPath
()¶
-
getReportVonMisesStressFile
()¶ Return the path of the VonMisesStress verification report file.
-
getReportVonMisesStressGrPath
()¶ Return the path for the VonMisesStress verification graphics files.
-
getRltvConnectionsResultsPath
()¶ Return the relative path for the fatigue verification graphics files.
-
getRltvGraphicsPath
()¶ Return the relative path for the graphic files.
-
getRltvReactionsResultsPath
()¶ Return the relative path for the fatigue verification graphics files.
-
getRltvReportCrackFreqGrPath
()¶ Return the path for the crack verification graphics files (frequent loads).
-
getRltvReportCrackQpermGrPath
()¶ Return the path for the crack verification graphics files (quasi-permanent loads).
-
getRltvReportFatigueGrPath
()¶ Return the path for the fatigue verification graphics files.
-
getRltvReportLoadsGrPath
()¶ Return the relative path for the load graphic files.
-
getRltvReportNormStrGrPath
()¶ Return the path for the normal stresses verification graphics files.
-
getRltvReportPath
()¶ Return the relative path for the report files.
-
getRltvReportSectionsGrPath
()¶ Return the relative path for the sections graphic files.
-
getRltvReportShearGrPath
()¶ Return the path for the shear verification graphics files.
-
getRltvReportSimplLCGrPath
()¶
-
getRltvReportVonMisesStressGrPath
()¶ Return the path for the VonMisesStress verification graphics files.
-
getRltvResultsPath
()¶ Return the relative path for the files that contains results.
-
getVerifCrackFreqFile
()¶ Return the path of the crack verification results file (frequent loads).
-
getVerifCrackQpermFile
()¶ Return the path of the crack verification results file (quasi-permanent loads).
-
getVerifFatigueFile
()¶ Return the path of the fatigue verification results file.
-
getVerifFile
(limitStateLabel)¶ Return the path of the verification results file for the limit state argument.
Parameters: limitStateLabel – label identifying the limit state.
-
getVerifNormStrFile
()¶ Return the path of the normal stresses verification results file.
-
getVerifShearFile
()¶ Return the path of the shear verification results file.
-
getVerifVonMisesStressFile
()¶ Return the path of the VonMisesStress verification results file.
-
makedirs
(pth)¶ - Recursive directory creation function. Like mkdir(), but
- makes all intermediate-level directories needed to contain
the leaf directory.
Parameters: path – the path to create.
-
open
(fileName, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)¶ Open file and return a corresponding file object..
Parameters: - fileName – the path and name of the file.
- mode – see Python documentation for open built-in function.
- bufferting – see Python documentation for open built-in function.
- encoding – see Python documentation for open built-in function.
- errors – see Python documentation for open built-in function.
- newline – see Python documentation for open built-in function.
- closefd – see Python documentation for open built-in function.
- opener – see Python documentation for open built-in function.
-
postprocess.config.default_config.
findDirectoryUpwards
(fNameMark: str)¶ - Search upwards to find the directory where the file
- argument is.
Parameters: fNameMark – name of the file that marks the directory we are searching for.
-
postprocess.config.default_config.
findProjectDirectory
(fNameMark='.git')¶ - Search upwards to find the directory where the file
- argument is.
Parameters: fNameMark – name of the file that marks the working directory.
-
postprocess.config.default_config.
findWorkingDirectory
(fNameMark='env_config.py')¶ - Search upwards to find the directory where the file
- argument is.
Parameters: fNameMark – name of the file that marks the working directory.