This is and IDetailedModel interface specialization for detailed models that shall be suitable for Greedy algorithms.
A default implementation of the newly introduced methods for Finite volume functions is Greedy.User.IDetailedModel which can be used by most Finite volume models without any extensions or adaptations.
Definition at line 19 of file IDetailedModel.m.
|
static function
errs = | l2_error_sequence_algorithm (U, Uapprox,ModelData model_data) |
| computes the \(L^2(\Omega)\) error for each "snapshot" of a trajectories and returns the sequence of these errors. More...
|
|
static function
errs = | linfty_error_sequence_algorithm (U, Uapprox,ModelData model_data) |
| computes the \(L^{\infty}(\Omega)\) error for each "snapshot" of a trajectories and returns the sequence of these errors. More...
|
|
static function
W = | get_inner_product_matrix (ModelData model_data) |
| returns the inner product matrix for efficient computation of inner products on \({\cal W}_h\) More...
|
|
static function
U = | get_dofs_from_sim_data (sim_data) |
| extracts the \(H\) dimensional Dof vector from the sim_data structure More...
|
|
static function
snapshot = | get_dofs_at_time (sim_data, time_index) |
|
static function
ok = | struct_check (descr, checks) |
| executes checks on the fields of a structure object More...
|
|
|
| descr |
| The description structure holding information about the analytical parametrized problem and its discretization. More...
|
|
| decomp_mode |
|
| mu_names |
| cell array of strings describing the parameters of the model More...
|
|
| mu_ranges |
| cell array of vectors of size two defining the allowed interval range for the parameter components More...
|
|
| verbose |
| an integer defining the verbosity level of information output during basis generation More...
|
|
| debug |
| an integer defining the debugging level controlling error output and extra tests during basis generation More...
|
|
| num_cpus = 4 |
| The number of CPUs used for parallel sessions. More...
|
|
| decomp_mode |
| Decomposition operation mode. More...
|
|
| mu_names |
| cell array of strings describing the parameters of the model More...
|
|
| mu_ranges |
| cell array of vectors of size two defining the allowed interval range for the parameter components More...
|
|
| verbose |
| an integer defining the verbosity level of information output during basis generation More...
|
|
| debug |
| an integer defining the debugging level controlling error output and extra tests during basis generation More...
|
|
static const | base_checks |
| this structure holds variable names that need to be defined by the descr structure. More...
|
|
static const | time_checks |
| This constant can be used for a consistency check of time evolution members in the ModelDescr with help of IModel.struct_check() More...
|
|
IDetailedModel.IDetailedModel |
( |
|
descr | ) |
|
constructor
stores and analyzises the description strucutre
- Parameters
-
descr | structure describing the paramerized problem and the disretization. |
Definition at line 35 of file IDetailedModel.m.
static function U = Greedy.User.IDetailedModel.get_dofs_from_sim_data |
( |
|
sim_data | ) |
|
|
staticpure virtual |
function W = IDetailedModel.get_inner_product_matrix |
( |
ModelData |
model_data | ) |
|
|
staticpure virtual |
returns the inner product matrix for efficient computation of inner products on \({\cal W}_h\)
The matrix \(W\) returned can be used to compute an inner product
\[\langle u_h, v_h\rangle_{{\cal W}_h} = U^t W V\]
where \(U, V\) are the Dof vectors of the discrete functions \(u_h, v_h\in {\cal W}_h\).
- Parameters
-
- Return values
-
Implemented in Greedy.User.FVDetailedModelDefault.
function U0 = IDetailedModel.init_values_algorithm |
( |
ModelData |
model_data | ) |
|
|
pure virtual |
computes the Dof vectors for the initial value function \(u_h^0(\cdot;t\mu) = {\cal P}_h[u_0(\mu)]\)
- Parameters
-
- Return values
-
U0 | the Dof vector of the initial value projection |
Implemented in Greedy.User.FVDetailedModelDefault.
function UV = IDetailedModel.inner_product |
( |
ModelData |
model_data, |
|
|
|
U, |
|
|
|
V |
|
) |
| |
|
pure virtual |
computes the inner project between the Dof vectors of two discrete functions
- Parameters
-
U | Dof vector of first discrete function \(u_h\) |
V | Dof vector of second discrete function \(v_h\) |
model_data | Matlab structure storing (possibly) high dimensional data needed by IDetailedModel.detailed_simulation(). |
- Return values
-
UV | Dof vector of innter product \(\langle u_h, v_h \rangle_{{\cal W}_h}\) |
Implemented in Greedy.User.FVDetailedModelDefault.
function errs = IDetailedModel.l2_error_sequence_algorithm |
( |
|
U, |
|
|
|
Uapprox, |
|
|
ModelData |
model_data |
|
) |
| |
|
staticpure virtual |
computes the \(L^2(\Omega)\) error for each "snapshot" of a trajectories and returns the sequence of these errors.
- Parameters
-
U | first sequence of Dof vectors of discrete functions \(\{u_h^k\}_{k=0}^K\) stored in a H x K+1 matrix |
Uapprox | second sequence of Dof vectors of functions \(\{v_h^k\}_{k=0}^K\) stored in a H x K+1 matrix |
model_data | Matlab structure storing (possibly) high dimensional data needed by IDetailedModel.detailed_simulation(). |
- Return values
-
errs | sequence of errors \(\{ \| u_h^k - v_h^k \|_{L^2(\Omega)} \}_{k=0}^{K}\) stored in a K+1 x 1 vector |
Implemented in TwoPhaseFlow.DetailedModel, and Greedy.User.FVDetailedModelDefault.
function errs = IDetailedModel.linfty_error_sequence_algorithm |
( |
|
U, |
|
|
|
Uapprox, |
|
|
ModelData |
model_data |
|
) |
| |
|
staticpure virtual |
computes the \(L^{\infty}(\Omega)\) error for each "snapshot" of a trajectories and returns the sequence of these errors.
- Parameters
-
U | first sequence of Dof vectors of discrete functions \(\{u_h^k\}_{k=0}^K\) stored in a H x K+1 matrix |
Uapprox | second sequence of Dof vectors of functions \(\{v_h^k\}_{k=0}^K\) stored in a H x K+1 matrix |
model_data | Matlab structure storing (possibly) high dimensional data needed by IDetailedModel.detailed_simulation(). |
- Return values
-
errs | sequence of errors \(\{ \| u_h^k - v_h^k \|_{L^{\infty}(\Omega)} \}_{k=0}^{K}\) stored in a K+1 x 1 vector |
Implemented in Greedy.User.FVDetailedModelDefault.
function UON = IDetailedModel.orthonormalize |
( |
ModelData |
model_data, |
|
|
|
U |
|
) |
| |
|
pure virtual |
orthonormalizes a set of discrete functions \(\{ v_h^l \}_{l=1}^L\)
- Parameters
-
- Return values
-
UON | The Dof vectors of the orthonormalized set of discrete functions. |
Implemented in Greedy.User.FVDetailedModelDefault.
The documentation for this class was generated from the following file: