waves
Basic FE playground
flow::Picard Class Reference

Picard solver. More...

#include <wPicard.h>

Inheritance diagram for flow::Picard:
Collaboration diagram for flow::Picard:

Public Member Functions

 Picard (std::shared_ptr< Problem > _pbl, std::shared_ptr< tbox::LinearSolver > _linsol)
 Initialize Picard solver. More...
 
virtual bool run () override
 Run the Picard sovler. More...
 
virtual void write (std::ostream &out) const override
 
- Public Member Functions inherited from flow::Solver
 Solver (std::shared_ptr< Problem > _pbl, std::shared_ptr< tbox::LinearSolver > _linsol)
 
virtual ~Solver ()
 
void save (tbox::MshExport *mshWriter, int n=0)
 

Public Attributes

double relax
 relaxation More...
 
- Public Attributes inherited from flow::Solver
std::shared_ptr< Problempbl
 problem definition More...
 
std::shared_ptr< tbox::LinearSolver > linsol
 linear solver More...
 
int nthreads
 number of threads for the execution More...
 
double relTol
 relative tolerance on the residual More...
 
double absTol
 absolute tolerance on the residual More...
 
int maxIt
 max number of iterations More...
 
int verbose
 display more info More...
 
int nIt
 number of iterations More...
 
std::vector< double > phi
 full potential More...
 
std::vector< double > rPhi
 residual on potential More...
 
std::vector< double > vPhi
 perturbation potential More...
 
std::vector< Eigen::Vector3d > U
 velocity More...
 
std::vector< double > rho
 density More...
 
std::vector< double > M
 mach number More...
 
std::vector< double > Cp
 pressure coefficient More...
 
double Cl
 lift coefficient More...
 
double Cd
 drag coefficient More...
 
double Cs
 sideforce coefficient More...
 
double Cm
 pitch moment coefficient (positive nose-up) More...
 

Private Member Functions

void build (Eigen::SparseMatrix< double, Eigen::RowMajor > &A, std::vector< double > &b)
 Build LHS matrix and RHS vector for Picard iteration. More...
 

Additional Inherited Members

- Protected Member Functions inherited from flow::Solver
void computeFlow ()
 Compute variables in the flow field. More...
 
void computeLoad ()
 Compute total aerodynamic load coefficients on boundaries. More...
 
- Protected Attributes inherited from flow::Solver
fwk::Timers tms
 internal timers More...
 
std::vector< int > rows
 unknown nodal index More...
 

Detailed Description

Picard solver.

Authors
Adrien Crovato

Constructor & Destructor Documentation

◆ Picard()

Picard::Picard ( std::shared_ptr< Problem _pbl,
std::shared_ptr< tbox::LinearSolver >  _linsol 
)

Initialize Picard solver.

Authors
Adrien Crovato

Member Function Documentation

◆ build()

void Picard::build ( Eigen::SparseMatrix< double, Eigen::RowMajor > &  A,
std::vector< double > &  b 
)
private

Build LHS matrix and RHS vector for Picard iteration.

Authors
Adrien Crovato

◆ run()

bool Picard::run ( )
overridevirtual

Run the Picard sovler.

Solve the steady subsonic Full Potential Equation

Authors
Adrien Crovato

Reimplemented from flow::Solver.

◆ write()

void Picard::write ( std::ostream &  out) const
overridevirtual

Member Data Documentation

◆ relax

double flow::Picard::relax

relaxation


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