| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Theory.Drasil.DifferentialModel
Synopsis
- data DifferentialModel = SystemOfLinearODEs {
- _indepVar :: DefinedQuantityDict
- _depVar :: ConstrConcept
- _coefficients :: NonEmpty (NonEmpty Expr)
- _unknowns :: [Unknown]
- _dmConstants :: NonEmpty Expr
- _dmconc :: ConceptChunk
- data ODESolverFormat = X' {
- coeffVects :: [[Expr]]
- unknownVect :: [Integer]
- constantVect :: [Expr]
- data InitialValueProblem = IVP {}
- ($^^) :: ConstrConcept -> Integer -> Unknown
- ($**) :: Expr -> Unknown -> Term
- ($++) :: [Term] -> Term -> LHS
- makeAODESolverFormat :: DifferentialModel -> ODESolverFormat
- makeAIVP :: Expr -> Expr -> [Expr] -> InitialValueProblem
- makeASystemDE :: DefinedQuantityDict -> ConstrConcept -> NonEmpty (NonEmpty Expr) -> [Unknown] -> NonEmpty Expr -> String -> NP -> Sentence -> DifferentialModel
- makeASingleDE :: DefinedQuantityDict -> ConstrConcept -> LHS -> Expr -> String -> NP -> Sentence -> DifferentialModel
- formEquations :: [[Expr]] -> [Unknown] -> [Expr] -> ConstrConcept -> [Expr]
Export Data Type
data DifferentialModel Source #
Describe the structural content of a system of linear ODEs with six necessary fields
Constructors
| SystemOfLinearODEs | |
Fields
| |
Instances
data ODESolverFormat Source #
Acceptable format for ODE solvers, represent the structure of X' = AX + B X' is a column vector of first-order unknowns
Constructors
| X' | |
Fields
| |
data InitialValueProblem Source #
Information for solving an initial value problem
Input Language
($^^) :: ConstrConcept -> Integer -> Unknown Source #
Operation connect the dependent variable and the order
Constructors
makeAODESolverFormat :: DifferentialModel -> ODESolverFormat Source #
Construct an ODESolverFormat for solving the ODE.
makeASystemDE :: DefinedQuantityDict -> ConstrConcept -> NonEmpty (NonEmpty Expr) -> [Unknown] -> NonEmpty Expr -> String -> NP -> Sentence -> DifferentialModel Source #
Create a DifferentialModel by giving a independent variable, a dependent variable a canonical matrix form, and conceptChuck.
makeASingleDE :: DefinedQuantityDict -> ConstrConcept -> LHS -> Expr -> String -> NP -> Sentence -> DifferentialModel Source #
Create a DifferentialModel by the input language
formEquations :: [[Expr]] -> [Unknown] -> [Expr] -> ConstrConcept -> [Expr] Source #
Form well-formatted ODE equations which the ODE solvers can solve.