Source code for Mordicus.Core.Containers.InitialConditions.InitialConditionBase
# -*- coding: utf-8 -*-
[docs]class InitialConditionBase(object):
"""
Class containing a InitialConditionBase
"""
def __init__(self):
return
[docs] def ReduceInitialSnapshot(self, reducedOrderBasis, snapshotCorrelationOperator):
"""
Compresses the initial condition on the reducedOrderBasis, and sets it as parameter of the InitialCondition object
"""
raise NotImplementedError("Not implemented in InitialConditionBase") # pragma: no cover
[docs] def GetReducedInitialSnapshot(self):
"""
Returns
-------
np.ndarray
of size (numberOfModes,)
"""
raise NotImplementedError("Not implemented in InitialConditionBase") # pragma: no cover
def __str__(self):
res = "I am a InitialConditionBase, try instanciating a particular physical loading instead"
return res
if __name__ == "__main__":# pragma: no cover
from Mordicus import RunTestFile
RunTestFile(__file__)