16#include <Loi_Etat_GP_QC.h>
17#include <Fluide_Dilatable_base.h>
37 Cerr <<
"Reading the perfect gas equation of state for QC ... " << finl;
43 return rho_constant_pour_debug_ ? rho_constant_pour_debug_->valeurs()(0,0) :
50 double rho_constant = rho_constant_pour_debug_ ? rho_constant_pour_debug_->valeurs()(0,0) : 0;
51 double Pth = le_fluide->pression_th();
53 CDoubleArrView tab_ICh =
static_cast<const ArrOfDouble&
>(le_fluide->inco_chaleur().valeurs()).view_ro();
54 CDoubleArrView
rho_n =
static_cast<const ArrOfDouble&
>(
tab_rho_n).view_ro();
56 DoubleArrView rho =
static_cast<ArrOfDouble&
>(tab_rho).view_wo();
57 Kokkos::parallel_for(start_gpu_timer(__KERNEL_NAME__), tab_rho.
size(), KOKKOS_LAMBDA(
const int som)
62 end_gpu_timer(__KERNEL_NAME__);
Class defining operators and methods for all reading operation in an input flow (file,...
State law class for ideal gases in the quasi-compressible (QC) framework.
public_for_cuda void compute_tab_rho(DoubleTab &) override
void calculer_masse_volumique() override
Computes the density.
Base state law class for mono-species ideal gases.
const DoubleTab & rho_n() const
virtual void calculer_masse_volumique()
Recomputes the density (masse volumique).
const DoubleTab & rho_np1() const
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Base class for output streams.