Computes the cellwise coefficients for the diffusion operator from the given data:
where
realisations of iid random variables on (-.5,.5) are.
More...
#include <cellwise.hh>


Public Member Functions | |
| CellA_M_of_x_MC (concepts::DynArray< Real > &A_M_alpha_of_x, const __gnu_cxx::hash_map< uint, uint > &data_level_map, const __gnu_cxx::hash_map< uint, Real > &Ea_of_x, const concepts::Array< Real > &sqrt_lambda, const concepts::Array< concepts::DynArray< Real > > &phi) | |
| Constructor. | |
| virtual void | operator() (const Element< Real > &elm)=0 |
| Application operator. | |
| virtual void | operator() (const concepts::Cell &cell) |
| Application operator. | |
| virtual void | operator() (const concepts::Element< Real > &elm) |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| concepts::DynArray< Real > & | A_M_ |
| const __gnu_cxx::hash_map < uint, uint > & | data_level_map_ |
| const __gnu_cxx::hash_map < uint, Real > & | Ea_ |
| const uint | M_ |
| Sum boundary. | |
| const concepts::Array < concepts::DynArray< Real > > & | phi_ |
| concepts::Array< Real > | random_ |
| Random values. | |
| const concepts::Array< Real > & | sqrt_lambda_ |
Computes the cellwise coefficients for the diffusion operator from the given data:
where
realisations of iid random variables on (-.5,.5) are.
This is used for the Monte Carlo method.
Definition at line 103 of file cellwise.hh.
| CellA_M_of_x_MC::CellA_M_of_x_MC | ( | concepts::DynArray< Real > & | A_M_alpha_of_x, |
| const __gnu_cxx::hash_map< uint, uint > & | data_level_map, | ||
| const __gnu_cxx::hash_map< uint, Real > & | Ea_of_x, | ||
| const concepts::Array< Real > & | sqrt_lambda, | ||
| const concepts::Array< concepts::DynArray< Real > > & | phi | ||
| ) |
Constructor.
random_ is filled with M_ realisations of an uniformly(-1/2, 1/2) distributed random variable. The same value of this realisation is later used in every physical point x.
Creating a new instance of this class for each Monte Carlo problem instance to be solved then creates a new realisation of the whole diffusion coefficient.
| A_M_alpha_of_x | Result, |
| data_level_map | Maps indices from data mesh to computational mesh, phi is given on the data mesh and the rest on the computational mesh |
| Ea_of_x | |
| sqrt_lambda | |
| phi | |
| virtual std::ostream& CellA_M_of_x_MC::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::CellPostprocess< Real >.
| virtual void concepts::CellPostprocess< Real >::operator() | ( | const Element< Real > & | elm | ) | [pure virtual, inherited] |
Application operator.
This application operator has to be overloaded to post process a space.
| elm | Current element |
Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.
| virtual void CellA_M_of_x_MC::operator() | ( | const concepts::Element< Real > & | elm | ) | [virtual] |
| virtual void CellA_M_of_x_MC::operator() | ( | const concepts::Cell & | cell | ) | [virtual] |
Application operator.
This application operator has to be overloaded to post process a mesh.
| cell | Current cell |
Implements concepts::CellPostprocess< Real >.
concepts::DynArray<Real>& CellA_M_of_x_MC::A_M_ [private] |
Definition at line 130 of file cellwise.hh.
const __gnu_cxx::hash_map<uint, uint>& CellA_M_of_x_MC::data_level_map_ [private] |
Definition at line 131 of file cellwise.hh.
const __gnu_cxx::hash_map<uint, Real>& CellA_M_of_x_MC::Ea_ [private] |
Definition at line 132 of file cellwise.hh.
const uint CellA_M_of_x_MC::M_ [private] |
Sum boundary.
Definition at line 136 of file cellwise.hh.
const concepts::Array<concepts::DynArray<Real> >& CellA_M_of_x_MC::phi_ [private] |
Definition at line 134 of file cellwise.hh.
concepts::Array<Real> CellA_M_of_x_MC::random_ [private] |
Random values.
Definition at line 138 of file cellwise.hh.
const concepts::Array<Real>& CellA_M_of_x_MC::sqrt_lambda_ [private] |
Definition at line 133 of file cellwise.hh.