rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
renew_model.m File Reference

change fields of old param structure to new model structure with excessive use of function pointers. More...

Go to the source code of this file.

Functions

function [ nmodel
, nddata
,
plot_params ] = 
renew_model (model, detailed_data)
 change fields of old param structure to new model structure with excessive use of function pointers. More...
 
function [ np
, op ] = 
renewmodel>copy_and_rm (np, op, list)
 

Detailed Description

change fields of old param structure to new model structure with excessive use of function pointers.

Definition in file renew_model.m.

Function Documentation

function [np , op ] = renewmodel>copy_and_rm (   np,
  op,
  list 
)
Documentation Update:

Definition at line 175 of file renew_model.m.

function [ nmodel , nddata , plot_params ] = renew_model (   model,
  detailed_data 
)

change fields of old param structure to new model structure with excessive use of function pointers.

This function can be used to make old demos work. Simply load the old params and detailed_data and then call

1 [model,detailed_data,plot_params] = renewmodel(params, detailed_data);
2 demo_rb_gui(model, detailed_data, [],plot_params,'title');
Parameters
modelmodel
detailed_datadetailed data
Return values
nmodelnmodel
nddatanddata
plot_paramsplot params
Required fields of model:
  • rb_problem_type —  rb problem type
  • name_init_values —  name init values
  • name_dirichlet_values —  name dirichlet values
  • name_neuman_values —  name neuman values
  • name_flux —  name flux
  • name_diffusive_num_flux —  name diffusive num flux
  • name_convective_num_flux —  name convective num flux
  • flux_linear —  flux linear
  • init_values_algorithm —  init values algorithm
  • implicit_operators_algorithm —  implicit operators algorithm
  • inner_product_matrix_algorithm —  function pointer to a function computing a inner product matrix \(W\), such that \(u^t W v = <u, v>\). An example is fv_inner_product_matrix().
Required fields of detailed_data:
  • BM —  BM
  • QM —  QM
  • TM —  TM
  • ei_info —  ei info
Generated fields of nmodel:
  • init_values_ptr —  init values ptr
  • dirichlet_values_ptr —  dirichlet values ptr
  • neumann_values_ptr —  neumann values ptr
  • conv_flux_ptr —  conv flux ptr
  • num_diff_flux_ptr —  num diff flux ptr
  • fv_expl_diff_weight —  fv expl diff weight
  • num_conv_flux_ptr —  num conv flux ptr
  • velocity_ptr —  velocity ptr
  • fv_expl_conv_weight —  fv expl conv weight
  • init_values_algorithm —  init values algorithm
  • implicit_operators_algorithm —  implicit operators algorithm
  • inner_product_matrix_algorithm —  inner product matrix algorithm
Generated fields of nddata:
  • BM —  BM
  • TM —  TM
  • QM —  QM
  • ei_info —  ei info
  • implicit_crb_index —  implicit crb index
  • explicit_crb_index —  explicit crb index

Definition at line 17 of file renew_model.m.

Here is the call graph for this function: