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

reduced basis construction with different methods More...

Go to the source code of this file.

Functions

function
detailed_data = 
rb_basis_generation (model, detailed_data)
 reduced basis construction with different methods More...
 

Detailed Description

reduced basis construction with different methods

Definition in file rb_basis_generation.m.

Function Documentation

function detailed_data = rb_basis_generation (   model,
  detailed_data 
)

reduced basis construction with different methods

reduced basis construction with different methods. Performs computing and insertion of a field RB and RB_info into the detailed_data structure. detailed_data is assumed to contain the grid if required

Parameters
modelmodel
detailed_datadetailed data
Return values
detailed_datadetailed data
Required fields of model:
  • mu_names —  cell array of parameter-names
  • mu_ranges —  cell array of parameter-intervals
  • RB_generation_mode — 
    • file_load : simple loading of reduced basis from a file
    • lagrangian : simple snapshots without orthonormalization
    • PCA_trajectory : simple detailed simulation and PCA of the
    • PCA_trajectories : simple detailed simulation and PCA of the trajectories with parameter vectors specified in model.RB_mu_list
    • greedy_uniform_fixed : greedy algorithm based on a uniform cartesian parameter grid
    • greedy_log_uniform_fixed : greedy algorithm based on a logarithmically uniform cartesian parameter grid
    • greedy_random_fixed : greedy algorithm based on a uniformly distributed random parameter set
    • greedy_refined : greedy algorithm based on a uniformly random parameter set with grid refinement
    • model_RB_basisgen : call individual model.RB_basisgen
    • none : skipping of basis generation
  • use_generated_RB_basis —  use generated RB basis
  • set_rb_in_detailed_data —  function detailed_data=f(detailed_data, newRB) updating the reduced basis vectors stored in detailed_data by assigning them to newRB.
  • RB_mu_list —  RB mu list
  • get_dofs_from_sim_data —  function u=f(sim_data) returning degrees of freedom stored in a sim_data structure.
  • PCA_fixspace —  PCA fixspace
  • get_inner_product_matrix —  function W=f(model_data) returning the mass matrix \(W\) for inner product computation \(\langle u,v \rangle = u^t W v\).
  • RB_stop_Nmax —  RB stop Nmax
  • training —  training
  • RB_basisgen —  RB basisgen
  • debug —  flag indicating wether debug output shall be turned on
Optional fields of model:
  • RB_basis_filename —  name of file, that contains precomputed reduced basis RB in file_load mode
  • RB_train_rand_seed —  set random seed for M_train generation in random mode
  • RB_train_size —  number of training parameter vectors to ... generate in random-mode
  • RB_numintervals —  vector indicating the number of intervals of the (coarse) grid in parameter space
Generated fields of detailed_data:
  • RB —  reduced basis columns 1,...,Nmax
  • RB_info —  depending on generation method some detailed information
  • RB_info.M_train —  RB info.M train
  • RB_info.MMesh0 —  RB info.MMesh0

Definition at line 17 of file rb_basis_generation.m.

Here is the caller graph for this function: