Evolving surface finite element method  v0.3.0-14-g3598512
Numerical experiments for my papers
Public Member Functions | Private Attributes | List of all members
Esfem::Pattern_helper Class Reference

Implementation details for Brusselator_scheme::pattern_loop(). More...

#include <brusselator_algo_impl.h>

Collaboration diagram for Esfem::Pattern_helper:
Collaboration graph
[legend]

Public Member Functions

 Pattern_helper (Brusselator_scheme &)
 
void finalize_scalarPDE_rhs ()
 
void solve_scalarPDE ()
 New value for member fun from Brusselator_scheme::fef.u and Brusselator_scheme::fef.w More...
 
void update_exactSolutions ()
 Interpolate exact solutions scalar and vector valued PDE. More...
 
void plot_paraview ()
 Prints out fun of Brusselator_scheme::fef.u and Brusselator_scheme::fef.w. More...
 

Private Attributes

Brusselator_schemebs
 Contains numerical solution. More...
 
const Grid::Grid_and_time grid
 Temporally grid, hence const brief More...
 
Grid::Scal_FEfun_set u
 fef.u on grid
 
Grid::Scal_FEfun_set w
 fef.w on grid
 
Io::L2H1_calculator norm
 Norms on the calculated Grid.
 
Io::Paraview paraview
 Has reference to member u.fun and w.fun.
 
Scalar_solver solver
 Solver for u and w
 
Rhs load_vector
 Provides assembly and add_scaled methods.
 

Detailed Description

Implementation details for Brusselator_scheme::pattern_loop().

Definition at line 223 of file brusselator_algo_impl.h.

Constructor & Destructor Documentation

Pattern_helper::Pattern_helper ( Brusselator_scheme bs_input)
explicit

Todo:
scalar valued rhs is missing

Definition at line 181 of file brusselator_algo_impl.cpp.

Member Function Documentation

void Pattern_helper::finalize_scalarPDE_rhs ( )

Definition at line 195 of file brusselator_algo_impl.cpp.

void Esfem::Pattern_helper::plot_paraview ( )
inline

Prints out fun of Brusselator_scheme::fef.u and Brusselator_scheme::fef.w.

Definition at line 280 of file brusselator_algo_impl.h.

void Pattern_helper::solve_scalarPDE ( )

New value for member fun from Brusselator_scheme::fef.u and Brusselator_scheme::fef.w

We assume that the rhs_les has been prepared with finalize_rhs(). The vaule of fun will be overwritten with the solution of the following system for $u$ and $w$:

\begin{gather*} (1+ \tau \gamma) (M\nodalValue{u})^{n+1} + \tau (A \nodalValue{u})^{n+1} - \tau \gamma M^{n+1}(\nodalValue{u}^n, \nodalValue{w}^n) \nodalValue{u}^{n+1} = \nodalValue{y}_{1}, \\ (M\nodalValue{w})^{n+1} + \tau D_c (A \nodalValue{w})^{n+1} + \tau \gamma M^{n+1}(\nodalValue{u}^{n+1}, \nodalValue{u}^{n+1}) \nodalValue{w}^{n+1} = \nodalValue{y}_{2}, \end{gather*}

where $ \nodalValue{y}_{1,2}$ the right-hand side of the system is.

Definition at line 201 of file brusselator_algo_impl.cpp.

void Pattern_helper::update_exactSolutions ( )

Interpolate exact solutions scalar and vector valued PDE.

Roughly I interpolate the ESFEM solution on the exact grid and then assign nodal values to the current grid.

Definition at line 209 of file brusselator_algo_impl.cpp.

Member Data Documentation

Brusselator_scheme& Esfem::Pattern_helper::bs
private

Contains numerical solution.

Definition at line 241 of file brusselator_algo_impl.h.

const Grid::Grid_and_time Esfem::Pattern_helper::grid
private

Temporally grid, hence const brief

brief

Definition at line 242 of file brusselator_algo_impl.h.


The documentation for this class was generated from the following files: