rbmatlab 0.10.01
Functions
rbasis/interface/gen_reduced_model.m File Reference

generates an IReducedModel instance from a description structure. More...

Go to the source code of this file.

Functions

function rmodel gen_reduced_model ( dmodel, BasisGenDescr bg_descr)
 generates an IReducedModel instance from a description structure.

Detailed Description

generates an IReducedModel instance from a description structure.

Definition in file gen_reduced_model.m.


Function Documentation

function rmodel = gen_reduced_model (   dmodel,
BasisGenDescr  bg_descr 
)

generates an IReducedModel instance from a description structure.

This function constructs the correct IReducedModel instance for a BasisGenDescr structure. The field rb_problem_type should contain the package name of the ReducedModel class. If e.g. descr.rb_problem_type equals the string LinEvol, an object of type LinEvol.ReducedModel is returned.

The class type of the returned object can also be chosen explictly by specifying the field descr.rmodel_constructor.

Parameters:
dmodeldmodel
bg_descra Matlab structure
Return values:
rmodelrmodel
Required fields of dmodel:
  • descr —  descr
  • rb_problem_type —  rb problem type
Required fields of bg_descr:
  • rmodel_constructor —  rmodel constructor
  • rb_problem_type —  rb problem type
  • detailed_data_constructor —  detailed data constructor
  • reduced_data_constructor —  reduced data constructor

Definition at line 1 of file gen_reduced_model.m.

All Classes Namespaces Files Functions Variables