Classes | |
class | TVariable |
Class used to represent the properties and the numerical values of a problem variable. More... | |
class | TUnknown |
Class used to represent the properties and the numerical values of an unknown problem variable. More... | |
class | TInverse |
Class that defines the callbacks for an inverse. More... | |
class | TObject |
Class used to represent an instance of an inverse. More... | |
class | TArgument |
This class acts as a read-only interface to a TVariable object. It is used only in the callbacks to describe the argument variables. This class is not used internally in the solver. It provides proper value access behavior depending on the type of the variable and the calling context. Also, it implements some of the attribute access methods from TVariable. More... | |
class | TTarget |
This class acts as a write-only interface to a TVariable object. It is used only in the callbacks to describe the target variables. This class is not used internally in the solver. It provides proper value access behavior depending on the type of the variable and the calling context. Also, it implements some of the attribute access methods from TVariable. More... | |
class | TFreeFunctionWrapper |
Wrapper class for any free function that is invoked as an atomic class callback. More... | |
struct | TEnumPolicy |
Policy class that specifies a enum value of type EnumType. More... | |
class | TModifierCallback |
Function wrapper class for modifier callbacks. More... | |
class | TNonModifierCallback |
Function wrapper class for non-modifier callbacks. More... | |
class | TPredicateCallback |
Function wrapper class for predicate callbacks. More... | |
class | TStaticNonModifierCallback |
Function wrapper class for static non-modifier callbacks. More... | |
class | TStaticPredicateCallback |
Function wrapper class for static predicate callbacks. More... | |
class | TProblem |
Representation of a problem object in the SPARK solver. More... | |
class | TProblem::TState |
Interface class defining the methods used to save and restore the state of the problem using the TProblem::Save() and TProblem::Restore() methods. More... | |
class | TComponent |
Class that solves the set of DAE equations generated by setupcpp. More... | |
struct | delete_policy |
Policy class used to delete non-array data types using delete operator. More... | |
struct | delete_array_policy |
Policy class used to delete array data types using delete [] operator. More... | |
struct | deleter |
Helper class that implements either delete_policy or delete_array_policy depending on the compile-time value of the non-type parameter IsArray. More... | |
class | XAssertion |
Base class for all SPARK exceptions. More... | |
class | XDimension |
Indicates that a runtime error occured due to mismatched dimension. More... | |
class | XOutOfRange |
Indicates that a runtime error occured due to an out of range access operation on a container. More... | |
class | XMemory |
Indicates that a runtime error occured because memory could not be allocated. More... | |
class | XInitialization |
Indicates that a runtime error occured while initializing an object. More... | |
class | XIO |
Indicates that a runtime error occured while performing an IO operation. More... | |
class | XTimeStep |
Indicates that a runtime error occured while adapting the time step. More... | |
class | XStepper |
Inidicates that stepping to the next step failed. More... | |
Functions used inside the solver code | |
enum | NumericalValueTypes { NumericalValueType_VALID = 0, NumericalValueType_INF = 1, NumericalValueType_NAN = 2 } |
Codes returned by SPARK::InfiniteOrNaN() function. More... | |
template<typename T> NumericalValueTypes | InfiniteOrNaN (T scalar) |
Checks whether the floating-point number scalar is infinite or NaN or a valid numerical scalar. | |
Functions used in HVAC toolkit | |
double | abs (double x) |
double | min (double x, double y) |
double | max (double x, double y) |
double | sign (double x) |
Returns the +1.0 if x is positive, -1.0 otherwise. | |
double | sign (double retval, double test) |
Returns the a if b is strictly positive, -a otherwise. | |
double | log2 (double x) |
Constant Declaration | |
const double | TINY = 1.0E-30 |
Considered essentially as zero in solver (e.g., used to detect singularity). | |
const double | SQRT_UROUND = sqrt(UROUND) |
Square root of the unit round-off error. | |
Typedefs | |
typedef SPARK::container< SPARK::TArgument > | TArguments |
Type for collection of TArgument objects. | |
typedef const TArguments & | ArgList |
Type of argument list passed to the non-static callback functions. | |
typedef SPARK::container< SPARK::TTarget > | TTargets |
Type for collection of TTarget objects. | |
typedef TTargets & | TargetList |
Type of target list passed to the the modifier callback functions. | |
typedef void(* | TModifierFunction )(TObject *, ArgList, TargetList) |
Function prototype for modifier callbacks. | |
typedef void(* | TNonModifierFunction )(TObject *, ArgList) |
Function prototype for non-modifier callbacks. | |
typedef bool(* | TPredicateFunction )(TObject *, ArgList) |
Function prototype for predicate callbacks. | |
typedef void(* | TStaticNonModifierFunction )(TInverse *) |
Function prototype for static callbacks. | |
typedef bool(* | TStaticPredicateFunction )(TInverse *) |
Function prototype for predicate callbacks. | |
Enumerations | |
enum | CallbackTypes { CallbackType_EVALUATE = 0, CallbackType_PREDICT, CallbackType_CONSTRUCT, CallbackType_DESTRUCT, CallbackType_PREPARE_STEP, CallbackType_ROLLBACK, CallbackType_COMMIT, CallbackType_CHECK_INTEGRATION_STEP, CallbackType_STATIC_CONSTRUCT, CallbackType_STATIC_DESTRUCT, CallbackType_STATIC_PREPARE_STEP, CallbackType_STATIC_ROLLBACK, CallbackType_STATIC_COMMIT, CallbackType_STATIC_CHECK_INTEGRATION_STEP, CALLBACKTYPES_L, CallbackType_NONE = CALLBACKTYPES_L } |
Enum for callback types. More... | |
enum | ProtoTypes { ProtoType_MODIFIER = 0, ProtoType_NON_MODIFIER, ProtoType_PREDICATE, ProtoType_STATIC_NON_MODIFIER, ProtoType_STATIC_PREDICATE, PROTOTYPES_L, ProtoType_NONE = PROTOTYPES_L } |
Enum for callback prototypes. More... | |
enum | ReturnTypes { ReturnType_VALUE = 0, ReturnType_RESIDUAL, RETURNTYPES_L, ReturnType_NONE = RETURNTYPES_L } |
Enum for return types from modifier callbacks. More... | |
enum | VariableTypes { VariableType_GLOBAL_TIME = 0, VariableType_GLOBAL_TIME_STEP, VariableType_PARAMETER, VariableType_INPUT, VariableType_UNKNOWN, VARIABLETYPES_L, VariableType_NONE = VARIABLETYPES_L } |
Enum for the various variable types in the problem. More... | |
enum | RequestTypes { RequestType_ABORT = 0, RequestType_STOP, RequestType_SET_STOP_TIME, RequestType_REPORT, RequestType_SNAPSHOT, RequestType_SET_MEETING_POINT, RequestType_CLEAR_MEETING_POINTS, RequestType_RESTART, RequestType_SET_TIME_STEP, RequestType_SET_DYNAMIC_STEPPER, REQUESTTYPES_L, RequestType_NONE = REQUESTTYPES_L } |
Functions | |
std::ostream & | operator<< (std::ostream &os, const SPARK::TUnknown &unknown) |
Output operator << overload for the SPARK::TUnknown class. | |
std::ostream & | operator<< (std::ostream &os, const SPARK::TVariable &V) |
Output operator << overload for the SPARK::TVariable class. | |
std::ostream & | operator<< (std::ostream &os, const SPARK::TArgument &argument) |
Output operator << overload for the TArgument class. | |
std::ostream & | operator<< (std::ostream &os, const SPARK::TTarget &target) |
Output operator << overload for the TTarget class. |
|
Type for collection of TArgument objects.
|
|
Type of argument list passed to the non-static callback functions.
|
|
Type for collection of TTarget objects.
|
|
Type of target list passed to the the modifier callback functions.
|
|
Function prototype for modifier callbacks.
|
|
Function prototype for non-modifier callbacks.
|
|
Function prototype for predicate callbacks.
|
|
Function prototype for static callbacks.
|
|
Function prototype for predicate callbacks.
|
|
Codes returned by SPARK::InfiniteOrNaN() function.
|
|
|
Enum for callback prototypes.
|
|
Enum for return types from modifier callbacks.
|
|
Enum for the various variable types in the problem.
|
|
Enum for the various atomic class requests The values are specified by the following bit masks that can be combined using the bitwise OR ( | ) operator.
|
|
Output operator << overload for the SPARK::TUnknown class.
|
|
Output operator << overload for the SPARK::TVariable class.
|
|
Returns the absolute value of x
|
|
Returns the min of two variables that can be compared using <
|
|
Returns the max of two variables that can be compared using >
|
|
Returns the +1.0 if
|
|
Returns the
|
|
Returns the log in base 2 of the double x
|
|
Checks whether the floating-point number
|
|
Output operator << overload for the TArgument class.
|
|
Output operator << overload for the TTarget class.
|
|
Considered essentially as zero in solver (e.g., used to detect singularity).
|
|
Square root of the unit round-off error.
|