waves
Basic FE playground
flow::Solver Class Reference

Base solver class. More...

#include <wSolver.h>

Inheritance diagram for flow::Solver:
Collaboration diagram for flow::Solver:

Public Member Functions

 Solver (std::shared_ptr< Problem > _pbl, std::shared_ptr< tbox::LinearSolver > _linsol)
 
virtual ~Solver ()
 
virtual bool run ()
 Dummy run. More...
 
void save (tbox::MshExport *mshWriter, int n=0)
 

Public Attributes

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...
 

Protected Member Functions

void computeFlow ()
 Compute variables in the flow field. More...
 
void computeLoad ()
 Compute total aerodynamic load coefficients on boundaries. More...
 

Protected Attributes

fwk::Timers tms
 internal timers More...
 
std::vector< int > rows
 unknown nodal index More...
 

Detailed Description

Base solver class.

Authors
Adrien Crovato

Constructor & Destructor Documentation

◆ Solver()

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

◆ ~Solver()

Solver::~Solver ( )
virtual

Member Function Documentation

◆ computeFlow()

void Solver::computeFlow ( )
protected

Compute variables in the flow field.

Authors
Adrien Crovato

◆ computeLoad()

void Solver::computeLoad ( )
protected

Compute total aerodynamic load coefficients on boundaries.

Authors
Adrien Crovato

◆ run()

bool Solver::run ( )
virtual

Dummy run.

Authors
Adrien Crovato

Reimplemented in flow::Newton, and flow::Picard.

◆ save()

void flow::Solver::save ( tbox::MshExport *  mshWriter,
int  n = 0 
)

Member Data Documentation

◆ absTol

double flow::Solver::absTol

absolute tolerance on the residual

◆ Cd

double flow::Solver::Cd

drag coefficient

◆ Cl

double flow::Solver::Cl

lift coefficient

◆ Cm

double flow::Solver::Cm

pitch moment coefficient (positive nose-up)

◆ Cp

std::vector<double> flow::Solver::Cp

pressure coefficient

◆ Cs

double flow::Solver::Cs

sideforce coefficient

◆ linsol

std::shared_ptr<tbox::LinearSolver> flow::Solver::linsol

linear solver

◆ M

std::vector<double> flow::Solver::M

mach number

◆ maxIt

int flow::Solver::maxIt

max number of iterations

◆ nIt

int flow::Solver::nIt

number of iterations

◆ nthreads

int flow::Solver::nthreads

number of threads for the execution

◆ pbl

std::shared_ptr<Problem> flow::Solver::pbl

problem definition

◆ phi

std::vector<double> flow::Solver::phi

full potential

◆ relTol

double flow::Solver::relTol

relative tolerance on the residual

◆ rho

std::vector<double> flow::Solver::rho

density

◆ rows

std::vector<int> flow::Solver::rows
protected

unknown nodal index

◆ rPhi

std::vector<double> flow::Solver::rPhi

residual on potential

◆ tms

fwk::Timers flow::Solver::tms
protected

internal timers

◆ U

std::vector<Eigen::Vector3d> flow::Solver::U

velocity

◆ verbose

int flow::Solver::verbose

display more info

◆ vPhi

std::vector<double> flow::Solver::vPhi

perturbation potential


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