Mordicus.Modules.Safran.Containers.Loadings.Dirichlet module¶
- class Mordicus.Modules.Safran.Containers.Loadings.Dirichlet.Dirichlet(solutionName, set)[source]¶
Bases:
LoadingBase
Class containing a Loading of type Dirichlet boundary condition.
- function¶
returning the value being imposed for the loading, with respect to the spatial position
- Type
function
- assembledBC¶
of size (numberOfModes,) containing the precomputed vector “red” for deriving the Dirichlet reduced external forces contribution is the form: tgv*red
- Type
numpy.ndarray
- tgv¶
very large value, used for weak enforcement of the loading using penalisation
- Type
float
- ComputeContributionToReducedExternalForces(time)[source]¶
Computes and returns the reduced external forces contribution of the loading
- Parameters
time (float) –
- Returns
of size (numberOfModes,)
- Return type
np.ndarray
- GetAssembledReducedFieldAtTime()[source]¶
Returns assembledBC
- Returns
of size (numberOfModes,) containing the precomputed vector “red” for deriving the Dirichlet reduced external forces contribution is the form: tgv*red
- Return type
numpy.ndarray
- ReduceLoading(mesh, problemData, reducedOrderBases, operatorCompressionData)[source]¶
Computes and sets the reduced representation of the loading
- Parameters
mesh (BasicTools.Containers.UnstructuredMesh) – mesh of the high-fidelity model
problemData (ProblemData) – problemData containing the loading
reducedOrderBases (dict(str: np.ndarray)) – dictionary with solutionNames (str) as keys and reducedOrderBases (np.ndarray of size (numberOfModes, numberOfDOFs)) as values
operatorCompressionData (dict(str: custom_data_structure)) – not used in this loading dictionary with solutionNames (str) as keys and data structure generated by the operator compression step as values