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

collects operator evaluations on a sample of snapshots More...

Go to the source code of this file.

Functions

function
LU_fnames = 
ei_operator_collect_files (model, model_data, Mtrain, params)
 collects operator evaluations on a sample of snapshots More...
 

Detailed Description

collects operator evaluations on a sample of snapshots

Definition in file ei_operator_collect_files.m.

Function Documentation

function LU_fnames = ei_operator_collect_files (   model,
  model_data,
  Mtrain,
  params 
)

collects operator evaluations on a sample of snapshots

This function collects operator evaluations applied to sets of snapshots. Given a list of operators parameter dependent operators \(L_q(\mu) \in {\cal W}_h, q=1,\ldots,Q\) which are \(H\)-independent Dof dependent as described in [DOH10] and a set of parameters \(M \subset {\cal M} \subset {\cal R}^p\), this function computes operator evaluations \(L_q(\mu)[u_h(\mu;t^k)]\) for all \(\mu \in M\) and \(t^k=k\Delta t\), and stores the results in matlab files.

Parameters
modelmodel
model_datamodel data
Mtraina matrix specifying the parameter set \(M\) for which detailed simulations shall be computed. The column vectors of the matrix each contain a parameter vector.
paramsa structure controlling the behaviour of this function
Return values
LU_fnamesLU fnames
Required fields of model:
  • collect_newton_steps —  boolean flag, indicating whether the intermediate newton steps computed by a detailed simulaton with a Newton scheme shall also be considered when applying the operators
  • ei_detailed_savepath —  path, where the trajectories computed as results of detailed simulations are stored. This files must contain a structure named sim_data with a field U of dimesion #DOFs x model.nt +1 or a field Unewton of dimension #DOFs x model.nt + 1 + #intermediate Newton steps in case of a Newton scheme and model.collect_newton_steps==true. The files are created by save_detailed_simulations() for all parameters given by Mtrain
  • ei_operator_savepath —  path, where the LU-files are stored. These files each contain an array named LU of the same dimension as sim_data.U respectively sim_data.Unewton from the files stored in ei_detailed_savepath.
  • separate_CRBs —  boolean flag, indicating whether, the operator evaluations shall be stored in different directories for the later computation of separate collateral reduced basis spaces for each operator, or combined a single directory.
  • verbose —  flag indicating the verbosity level of informative output
  • debug —  flag indicating wether debug output shall be turned on
  • mu_names —  a string array containing the symbolic names of the parameter vector \(\mu\)
  • T —  end time for evolution problems
  • nt —  number of time steps for evolution discretizations
  • newton_solver —  boolean flag indicating whether the numerical scheme includes non-linear equations that need to be solved by a Newon scheme
  • set_mu —  set mu
  • operators_diff_implicit —  operators diff implicit
Required fields of params:
  • ei_space_operators —  cell array of function pointers to spacial operators \(L_q, q=1,\ldots,Q\) for which evaluations on snapshots shall be computed and stored.
Optional fields of model:
  • force_delete —  if this option is set to true (the default), directories with data inconsistent with the current settings are deleted.
Optional fields of params:
  • num_cpus —  number of cpu cores that can be used for parallel computations. This parameter has only an effect, when Matlab's parallel computation capabilities are started by initiating a matlabpool. (default == 4)

Definition at line 17 of file ei_operator_collect_files.m.

Here is the call graph for this function:

Here is the caller graph for this function: