1 function sim_data = detailed_simulation(dmodel,model_data)
2 %
function sim_data = detailed_simulation(dmodel,model_data)
3 %
function performing the detailed simulation of a lin-stat model,
4 % i.e. the matrix and RHS assembly and solving of the system,
5 % possibly also output computation.
7 % Required fields of model_data:
8 % df_info:
feminfo object holding info about the @ref fem
function space.
11 % sim_data: structure holding the `H`-dimensional simulation data.
13 % Generated fields of sim_data:
15 % s: DOFs of the output functional.
18 % B. Haasdonk 22.2.2011
22 old_mode = model.decomp_mode;
23 model.decomp_mode = 0; % complete
27 [A,r] = model.operators(model,model_data);
37 if model.compute_output_functional
38 % the following can be used
for any, also nonlinear functionals:
40 %model.output_functional(model,model_data,sim_data.uh);
41 %
for linear operators,
get vector:
42 v = model.operators_output(model,model_data);
43 sim_data.s = (v(:)
') * sim_data.uh.dofs;
46 model.decomp_mode = old_mode;
class representing a continous piecewise polynomial function of arbitrary dimension. DOFS correspond to the values of Lagrange-nodes.
structure representing the fem-space information shared by all fem-functions. Implemented as handle c...