LifeV
HarmonicExtensionSolver< Mesh, SolverType > Class Template Reference

#include <HarmonicExtensionSolver.hpp>

+ Collaboration diagram for HarmonicExtensionSolver< Mesh, SolverType >:

Private Attributes

FESpace< Mesh, MapEpetra > & M_FESpace
 Finite Element Space. More...
 
MapEpetra M_localMap
 local map More...
 
matrixPtr_Type M_matrHE
 The matrix holding the values. More...
 
Displayer M_displayer
 
int M_me
 
bool M_verbose
 
MatrixElemental M_elmat
 Elementary matrix : 3 blocks. More...
 
vectorPtr_Type M_disp
 The actual extension of the displacement. More...
 
vectorPtr_Type M_secondRHS
 Auxiliary vector holding the second right hand of the system. More...
 
solverPtr_Type M_linearSolver
 The linear solver. More...
 
Real M_diffusion
 Diffusion coefficient for the laplacian operator. More...
 
UInt M_offset
 

Public Types

typedef SolverType solver_Type
 
typedef std::shared_ptr< solver_TypesolverPtr_Type
 
typedef solver_Type::matrix_type matrix_Type
 
typedef solver_Type::matrix_ptrtype matrixPtr_Type
 
typedef solver_Type::vector_type vector_Type
 
typedef solver_Type::vector_ptrtype vectorPtr_Type
 
typedef SolverType solver_type
 
typedef solver_type::matrix_type matrix_type
 
typedef solver_type::vector_type vector_type
 

Constructor & Destructor

 HarmonicExtensionSolver (FESpace< Mesh, MapEpetra > &mmFESpace, std::shared_ptr< Epetra_Comm > comm)
 Constructors for an harmonics extensions. More...
 
 HarmonicExtensionSolver (FESpace< Mesh, MapEpetra > &mmFESpace, std::shared_ptr< Epetra_Comm > comm, MapEpetra &localMap, UInt offset=0)
 Constructors for an harmonics extensions with offset. More...
 
virtual ~HarmonicExtensionSolver ()
 virtual destructor More...
 

Methods

void setUp (const GetPot &dataFile)
 Set up data from GetPot. More...
 
void iterate (BCHandler &BCh)
 Update convective term, boundary condition and solve the linearized ns system. More...
 
bool isLeader () const
 returns wheter this processor is the leader. More...
 
void resetPrec (bool reset=true)
 prepare to recompute the preconditioner. More...
 
void rescaleMatrix (Real &dt)
 manually rescale the system matrix by dt More...
 
void addSystemMatrixTo (matrixPtr_Type matr) const
 Adds the system matrix to the argument. More...
 
void applyBoundaryConditions (vector_Type &rhs, BCHandler &BCh)
 Apply boundary conditions. More...
 
void computeMatrix ()
 
void updateDispDiff ()
 

Get Methods

vector_Type const & disp () const
 
vector_Typedisp ()
 
MapEpetra const & getMap () const
 
FESpace< Mesh, MapEpetra > const & mFESpace () const
 
const std::shared_ptr< Epetra_Comm > & comm () const
 

Detailed Description

template<typename Mesh, typename SolverType = LifeV::SolverAztecOO>
class LifeV::HarmonicExtensionSolver< Mesh, SolverType >

Definition at line 71 of file HarmonicExtensionSolver.hpp.

Member Typedef Documentation

◆ solver_Type

typedef SolverType solver_Type

Definition at line 78 of file HarmonicExtensionSolver.hpp.

◆ solverPtr_Type

typedef std::shared_ptr<solver_Type> solverPtr_Type

Definition at line 79 of file HarmonicExtensionSolver.hpp.

◆ matrix_Type

◆ matrixPtr_Type

typedef solver_Type::matrix_ptrtype matrixPtr_Type

Definition at line 82 of file HarmonicExtensionSolver.hpp.

◆ vector_Type

◆ vectorPtr_Type

◆ solver_type

typedef SolverType solver_type

Definition at line 87 of file HarmonicExtensionSolver.hpp.

◆ matrix_type

typedef solver_type::matrix_type matrix_type

Definition at line 89 of file HarmonicExtensionSolver.hpp.

◆ vector_type

typedef solver_type::vector_type vector_type

Definition at line 90 of file HarmonicExtensionSolver.hpp.

Constructor & Destructor Documentation

◆ HarmonicExtensionSolver() [1/2]

HarmonicExtensionSolver ( FESpace< Mesh, MapEpetra > &  mmFESpace,
std::shared_ptr< Epetra_Comm >  comm 
)

Constructors for an harmonics extensions.

Parameters
mmFESpacethe FEspace that describes the problem
commthe Epetra_Comm to be used for communication

Definition at line 248 of file HarmonicExtensionSolver.hpp.

◆ HarmonicExtensionSolver() [2/2]

HarmonicExtensionSolver ( FESpace< Mesh, MapEpetra > &  mmFESpace,
std::shared_ptr< Epetra_Comm >  comm,
MapEpetra localMap,
UInt  offset = 0 
)

Constructors for an harmonics extensions with offset.

Parameters
mmFESpacethe FEspace that describes the problem
commthe Epetra_Comm to be used for communication
localMapuse localMap instead of M_FESpace.map()
offsetuse this offset to fill the matrix (both: row and column offset)

Definition at line 267 of file HarmonicExtensionSolver.hpp.

◆ ~HarmonicExtensionSolver()

virtual ~HarmonicExtensionSolver ( )
inlinevirtual

virtual destructor

Definition at line 121 of file HarmonicExtensionSolver.hpp.

Member Function Documentation

◆ setUp()

void setUp ( const GetPot dataFile)

Set up data from GetPot.

Parameters
dataFileGetPot object

Definition at line 291 of file HarmonicExtensionSolver.hpp.

◆ iterate()

void iterate ( BCHandler BCh)

Update convective term, boundary condition and solve the linearized ns system.

Parameters
bcHandlerBC handler

Definition at line 308 of file HarmonicExtensionSolver.hpp.

◆ isLeader()

bool isLeader ( ) const
inline

returns wheter this processor is the leader.

Definition at line 141 of file HarmonicExtensionSolver.hpp.

◆ resetPrec()

void resetPrec ( bool  reset = true)
inline

prepare to recompute the preconditioner.

Definition at line 147 of file HarmonicExtensionSolver.hpp.

◆ rescaleMatrix()

void rescaleMatrix ( Real dt)
inline

manually rescale the system matrix by dt

Definition at line 156 of file HarmonicExtensionSolver.hpp.

◆ addSystemMatrixTo()

void addSystemMatrixTo ( matrixPtr_Type  matr) const
inline

Adds the system matrix to the argument.

Definition at line 162 of file HarmonicExtensionSolver.hpp.

◆ applyBoundaryConditions()

void applyBoundaryConditions ( vector_Type rhs,
BCHandler BCh 
)

Apply boundary conditions.

Parameters
rightHandSide
bcHandler

Definition at line 328 of file HarmonicExtensionSolver.hpp.

◆ computeMatrix()

void computeMatrix ( )

Definition at line 353 of file HarmonicExtensionSolver.hpp.

◆ updateDispDiff()

void updateDispDiff ( )

◆ disp() [1/2]

vector_Type const& disp ( ) const
inline

Definition at line 182 of file HarmonicExtensionSolver.hpp.

◆ disp() [2/2]

vector_Type& disp ( )
inline

Definition at line 186 of file HarmonicExtensionSolver.hpp.

◆ getMap()

MapEpetra const& getMap ( ) const
inline

Definition at line 191 of file HarmonicExtensionSolver.hpp.

◆ mFESpace()

FESpace<Mesh, MapEpetra> const& mFESpace ( ) const
inline

Definition at line 196 of file HarmonicExtensionSolver.hpp.

◆ comm()

const std::shared_ptr<Epetra_Comm>& comm ( ) const
inline

Definition at line 201 of file HarmonicExtensionSolver.hpp.

Field Documentation

◆ M_FESpace

FESpace<Mesh, MapEpetra>& M_FESpace
private

Finite Element Space.

Definition at line 211 of file HarmonicExtensionSolver.hpp.

◆ M_localMap

MapEpetra M_localMap
private

local map

Definition at line 214 of file HarmonicExtensionSolver.hpp.

◆ M_matrHE

matrixPtr_Type M_matrHE
private

The matrix holding the values.

Definition at line 217 of file HarmonicExtensionSolver.hpp.

◆ M_displayer

Displayer M_displayer
private

Definition at line 219 of file HarmonicExtensionSolver.hpp.

◆ M_me

int M_me
private

Definition at line 220 of file HarmonicExtensionSolver.hpp.

◆ M_verbose

bool M_verbose
private

Definition at line 221 of file HarmonicExtensionSolver.hpp.

◆ M_elmat

MatrixElemental M_elmat
private

Elementary matrix : 3 blocks.

Definition at line 224 of file HarmonicExtensionSolver.hpp.

◆ M_disp

vectorPtr_Type M_disp
private

The actual extension of the displacement.

Definition at line 227 of file HarmonicExtensionSolver.hpp.

◆ M_secondRHS

vectorPtr_Type M_secondRHS
private

Auxiliary vector holding the second right hand of the system.

Definition at line 230 of file HarmonicExtensionSolver.hpp.

◆ M_linearSolver

solverPtr_Type M_linearSolver
private

The linear solver.

Definition at line 233 of file HarmonicExtensionSolver.hpp.

◆ M_diffusion

Real M_diffusion
private

Diffusion coefficient for the laplacian operator.

Definition at line 236 of file HarmonicExtensionSolver.hpp.

◆ M_offset

UInt M_offset
private

Definition at line 238 of file HarmonicExtensionSolver.hpp.


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