3 % generates an
IDetailedModel instance from a description structure.
6 % structure. The field
'rb_problem_type' should contain the
package name of the
7 % 'DetailedModel' class. If e.g. 'descr.rb_problem_type' equals the string
8 % 'LinEvol', an object of type LinEvol.DetailedModel is returned.
10 % The class type of the returned object can also be chosen explictly by
11 % specifying the field 'descr.dmodel_constructor'.
14 % descr: a Matlab structure of type ModelDescr.
16 if ~isfield(descr, 'rb_problem_type')
17 error('ModelDescr does not have the required field ''rb_problem_type''');
20 if ~isfield(descr,
'dmodel_constructor') || isempty(descr.dmodel_constructor)
24 dmodel = descr.dmodel_constructor(descr);
dmodel_constructor
function pointer to the constructor of the IDetailedModel implementation.
Struct with control fields for the analytical PDE functions, the discretization and the parametrizati...
This is the interface for a detailed model providing methods to compute high dimensional simulation s...
function dmodel = gen_detailed_model(ModelDescr descr)
generates an IDetailedModel instance from a description structure.