TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
SolveurPP1B.h
1/****************************************************************************
2* Copyright (c) 2025, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef SolveurPP1B_included
17#define SolveurPP1B_included
18
19#include <Assembleur_P_VEFPreP1B.h>
20#include <TRUSTTabs_forward.h>
21#include <SolveurSys_base.h>
22class Matrice_Base;
23
25{
26 Declare_instanciable(SolveurPP1B);
27public :
28 int resoudre_systeme(const Matrice_Base&, const DoubleVect&, DoubleVect&) override;
29 int resoudre_systeme(const Matrice_Base&, const DoubleVect&, DoubleVect&, int niter_max) override;
30
31 inline void reinit() override
32 {
34 solveur_pression_->reinit();
35 }
36
37 int associer(const Assembleur_P_VEFPreP1B&, const SolveurSys&);
38 inline int solveur_direct() const override { return solveur_pression_->solveur_direct(); }
39 inline void fixer_schema_temps_limpr(int l) override { solveur_pression_->fixer_schema_temps_limpr(l); }
40
41protected :
43 OBS_PTR(Assembleur_P_VEFPreP1B) assembleur_pression_;
44 DoubleVect b_;
45};
46
47#endif
Classe Matrice_Base Classe de base de la hierarchie des matrices.
int associer(const Assembleur_P_VEFPreP1B &, const SolveurSys &)
OBS_PTR(Assembleur_P_VEFPreP1B) assembleur_pression_
SolveurSys solveur_pression_
Definition SolveurPP1B.h:42
void fixer_schema_temps_limpr(int l) override
Definition SolveurPP1B.h:39
int solveur_direct() const override
Definition SolveurPP1B.h:38
void reinit() override
Definition SolveurPP1B.h:31
int resoudre_systeme(const Matrice_Base &, const DoubleVect &, DoubleVect &) override
DoubleVect b_
Definition SolveurPP1B.h:44
virtual void reinit()
class SolveurSys Un SolveurSys represente n'importe qu'elle classe
Definition SolveurSys.h:32