rbmatlab 0.10.01
|
This is the interface for a detailed model providing methods to compute high dimensional simulation snapshots.
An IDetailedModel implementation can be used as a basis for reduced basis generation routines, i.e. as a member of a reduced model as described in the section on the main interfaces.
Definition at line 1 of file IDetailedModel.m.
Public Member Functions | |
IDetailedModel () | |
constructor | |
function | fill_fields ( descr) |
helper function usually called in constructor in order to overwrite property values from a descr structure | |
function
isequal = | eq ( IDetailedModel other) |
overloaded equality (== ) operator, by default comparing the properties of the model. | |
function IDetailedModel this = | set_mu ( mu) |
sets the active parameter vector ![]() | |
function mu = | get_mu () |
returns the active parameter vector ![]() | |
virtual function ModelData model_data = | gen_model_data () |
generates large model data. | |
virtual function
sim_data = | detailed_simulation ( model_data) |
executes a detailed simulation for a given parameter | |
virtual function p = | plot_sim_data ( model_data, sim_data, plot_params) |
plots the simulation data as returned by detailed_simulation() | |
Static Public Member Functions | |
static function U = | get_dofs_from_sim_data ( sim_data) |
extracts the ![]() sim_data structure | |
Public Attributes | |
is_stationary = true | |
flag describing whether the implemented problem is stationary or time-dependent. | |
name | |
descriptive string for the implemented model. |
IDetailedModel.IDetailedModel | ( | ) |
constructor
An implementation should at least provide a constructor with the synopsis
DetailedModel(descr)
where the argument descr
is the underlying description of the analytical problem and its discretization.
Reimplemented in Greedy.User.IDetailedModel.
Definition at line 44 of file IDetailedModel.m.
function sim_data = IDetailedModel.detailed_simulation | ( | model_data | ) | [pure virtual] |
function isequal = IDetailedModel.eq | ( | IDetailedModel | other | ) |
overloaded equality (==
) operator, by default comparing the properties of the model.
This can be used as this == other
and returns whether the two DetailedModels are identical.
other | The object to compare with |
isequal | boolean value indiciating whether this == other |
Definition at line 97 of file IDetailedModel.m.
function IDetailedModel.fill_fields | ( | descr | ) |
helper function usually called in constructor in order to overwrite property values from a descr
structure
RB_
are ignored, as the are expected to describe the IReducedModel.addprop
method.descr | An structure describing the analytical problem and its discretization. |
Definition at line 64 of file IDetailedModel.m.
function ModelData model_data = IDetailedModel.gen_model_data | ( | ) | [pure virtual] |
generates large model data.
This function generates e.g. a grid, which is not to be stored in the model, but required for numerics.
model_data | Matlab structure storing high dimensional data needed by detailed_simulation(). |
Implements IModel.
Implemented in LinEvol.DetailedModel, LinEvolDune.DetailedModel, LinStat.DetailedModel, NonlinEvol.DetailedModel, TwoPhaseFlow.DetailedModel, Test.DetailedModel, and LebesgueTest.DetailedModel.
function U = IDetailedModel.get_dofs_from_sim_data | ( | sim_data | ) | [static, pure virtual] |
extracts the dimensional Dof vector from the
sim_data
structure
sim_data | matlab struct with simulation data generated e.g. by detailed_simulation() or rb_reconstruction() methods. |
U | ![]() |
Implemented in LinEvol.DetailedModel, LinEvolDune.DetailedModel, LinStat.DetailedModel, NonlinEvol.DetailedModel, TwoPhaseFlow.DetailedModel, Greedy.User.IDetailedModel, and Test.DetailedModel.
function mu = IDetailedModel.get_mu | ( | ) | [virtual] |
returns the active parameter vector
The default implementation returns a vector of the values of the properties of with names in the cell array mu_names.
mu | The parameter vector ![]() |
Implements IModel.
Reimplemented in LinEvolDune.DetailedModel, ThermalBlock.DetailedModel, and LebesgueTest.DetailedModel.
Definition at line 153 of file IDetailedModel.m.
function p = IDetailedModel.plot_sim_data | ( | model_data, | |
sim_data, | |||
plot_params | |||
) | [pure virtual] |
plots the simulation data as returned by detailed_simulation()
sim_data | simulation data structure as returned by detailed_simulation() |
plot_params | structure which controls the plot output |
model_data | model data |
p | GUI handle to the created MATLAB figure |
function IDetailedModel this = IDetailedModel.set_mu | ( | mu | ) | [virtual] |
sets the active parameter vector
The parameter set here, is used by the detailed_simulation() function.
The default implementation sets all fieldnames specified by the cell array mu_names.
mu | The parameter vector ![]() |
this | handle to the changed DetailedModel |
Implements IModel.
Reimplemented in LinEvolDune.DetailedModel, ThermalBlock.DetailedModel, and LebesgueTest.DetailedModel.
Definition at line 129 of file IDetailedModel.m.
IDetailedModel.is_stationary = true |
flag describing whether the implemented problem is stationary or time-dependent.
Default: true
Definition at line 21 of file IDetailedModel.m.
descriptive string for the implemented model.
Reimplemented in LinEvol.DetailedModel, LinStat.DetailedModel, NonlinEvol.DetailedModel, TwoPhaseFlow.DetailedModel, and Test.DetailedModel.
Definition at line 32 of file IDetailedModel.m.