ROL
Public Member Functions | Private Attributes | List of all members
FEM< Real > Class Template Reference

#include <example_02.hpp>

Public Member Functions

 FEM (int nx=128, Real kl=0.1, Real kr=10.0)
 
int nu (void)
 
int nz (void)
 
void build_mesh (std::vector< Real > &x, const std::vector< Real > &param)
 
void build_mesh (std::vector< Real > &x)
 
void build_force (std::vector< Real > &F, const std::vector< Real > &param)
 
void build_jacobian_1 (std::vector< Real > &dl, std::vector< Real > &d, std::vector< Real > &du, const std::vector< Real > &param)
 
void apply_jacobian_1 (std::vector< Real > &jv, const std::vector< Real > &v, const std::vector< Real > &param)
 
void apply_jacobian_2 (std::vector< Real > &jv, const std::vector< Real > &v, const std::vector< Real > &param)
 
void apply_adjoint_jacobian_2 (std::vector< Real > &jv, const std::vector< Real > &v, const std::vector< Real > &param)
 
void apply_mass_state (std::vector< Real > &Mv, const std::vector< Real > &v, const std::vector< Real > &param)
 
void apply_mass_control (std::vector< Real > &Mv, const std::vector< Real > &v)
 
void apply_inverse_mass_control (std::vector< Real > &Mv, const std::vector< Real > &v)
 
void linear_solve (std::vector< Real > &u, std::vector< Real > &dl, std::vector< Real > &d, std::vector< Real > &du, const std::vector< Real > &r, const bool transpose=false)
 
Real evaluate_target (int i, const std::vector< Real > &param)
 

Private Attributes

int nx_
 
Real kl_
 
Real kr_
 
std::vector< Real > pts_
 
std::vector< Real > wts_
 

Detailed Description

template<class Real>
class FEM< Real >

Definition at line 24 of file poisson-control/example_02.hpp.

Constructor & Destructor Documentation

template<class Real >
FEM< Real >::FEM ( int  nx = 128,
Real  kl = 0.1,
Real  kr = 10.0 
)
inline

Definition at line 34 of file poisson-control/example_02.hpp.

References FEM< Real >::pts_, and FEM< Real >::wts_.

Member Function Documentation

template<class Real >
int FEM< Real >::nu ( void  )
inline
template<class Real >
int FEM< Real >::nz ( void  )
inline
template<class Real >
void FEM< Real >::build_mesh ( std::vector< Real > &  x,
const std::vector< Real > &  param 
)
inline
template<class Real >
void FEM< Real >::build_mesh ( std::vector< Real > &  x)
inline

Definition at line 95 of file poisson-control/example_02.hpp.

References FEM< Real >::nz().

template<class Real >
void FEM< Real >::build_force ( std::vector< Real > &  F,
const std::vector< Real > &  param 
)
inline
template<class Real >
void FEM< Real >::build_jacobian_1 ( std::vector< Real > &  dl,
std::vector< Real > &  d,
std::vector< Real > &  du,
const std::vector< Real > &  param 
)
inline
template<class Real >
void FEM< Real >::apply_jacobian_1 ( std::vector< Real > &  jv,
const std::vector< Real > &  v,
const std::vector< Real > &  param 
)
inline
template<class Real >
void FEM< Real >::apply_jacobian_2 ( std::vector< Real > &  jv,
const std::vector< Real > &  v,
const std::vector< Real > &  param 
)
inline
template<class Real >
void FEM< Real >::apply_adjoint_jacobian_2 ( std::vector< Real > &  jv,
const std::vector< Real > &  v,
const std::vector< Real > &  param 
)
inline
template<class Real >
void FEM< Real >::apply_mass_state ( std::vector< Real > &  Mv,
const std::vector< Real > &  v,
const std::vector< Real > &  param 
)
inline

Definition at line 311 of file poisson-control/example_02.hpp.

References FEM< Real >::build_mesh().

template<class Real >
void FEM< Real >::apply_mass_control ( std::vector< Real > &  Mv,
const std::vector< Real > &  v 
)
inline

Definition at line 330 of file poisson-control/example_02.hpp.

References FEM< Real >::build_mesh(), and FEM< Real >::nz().

template<class Real >
void FEM< Real >::apply_inverse_mass_control ( std::vector< Real > &  Mv,
const std::vector< Real > &  v 
)
inline
template<class Real >
void FEM< Real >::linear_solve ( std::vector< Real > &  u,
std::vector< Real > &  dl,
std::vector< Real > &  d,
std::vector< Real > &  du,
const std::vector< Real > &  r,
const bool  transpose = false 
)
inline
template<class Real >
Real FEM< Real >::evaluate_target ( int  i,
const std::vector< Real > &  param 
)
inline

Definition at line 396 of file poisson-control/example_02.hpp.

References FEM< Real >::build_mesh().

Member Data Documentation

template<class Real >
int FEM< Real >::nx_
private
template<class Real >
Real FEM< Real >::kl_
private

Definition at line 27 of file poisson-control/example_02.hpp.

Referenced by FEM< Real >::build_jacobian_1().

template<class Real >
Real FEM< Real >::kr_
private

Definition at line 28 of file poisson-control/example_02.hpp.

Referenced by FEM< Real >::build_jacobian_1().

template<class Real >
std::vector<Real> FEM< Real >::pts_
private

Definition at line 30 of file poisson-control/example_02.hpp.

Referenced by FEM< Real >::build_force(), and FEM< Real >::FEM().

template<class Real >
std::vector<Real> FEM< Real >::wts_
private

Definition at line 31 of file poisson-control/example_02.hpp.

Referenced by FEM< Real >::build_force(), and FEM< Real >::FEM().


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