TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Fluide_R12_c1_gaz.h
1/****************************************************************************
2* Copyright (c) 2021, 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 Fluide_R12_c1_gaz_included
17#define Fluide_R12_c1_gaz_included
18
19#include <Fluide_reel_base.h>
20#include <Lois_R12_c1.h>
21
23{
24 Declare_instanciable(Fluide_R12_c1_gaz);
25
26 /* bornes (p, T_g) de H2OPROP.H */
27 std::map<std::string, std::array<double, 2>> unknown_range() const override
28 {
29 return { { "pression" , { 0.01e5, 260e5}}, { "temperature", { -250, 2000}} };
30 }
31
32protected :
33 void rho_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
34 void dP_rho_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
35 void dT_rho_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
36 void h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
37 void dP_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
38 void dT_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
39 void cp_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
40 void beta_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
41 void mu_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
42 void lambda_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override;
43
44 void rho_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
45 void dP_rho_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
46 void dh_rho_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
47 void T_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
48 void dP_T_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
49 void dh_T_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
50 void cp_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
51 void beta_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
52 void mu_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
53 void lambda_h_(const SpanD T, const SpanD P, SpanD res, int ncomp = 1, int id = 0) const override { Cerr << "Fluide_R12_c1_gaz::" << __func__ << " NOT CODED ! " << finl; throw; }
54
55private:
56#if HAVE_LIBC3
57 int like_eos_ = 0;
58#endif
59};
60
61#endif /* Fluide_R12_c1_gaz_included */
void dP_rho_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void beta_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dP_rho_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dh_rho_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void lambda_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dh_T_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void rho_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void T_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dP_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void mu_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void beta_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void lambda_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void rho_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dT_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dP_T_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void cp_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void cp_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void mu_h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void dT_rho_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
void h_(const SpanD T, const SpanD P, SpanD res, int ncomp=1, int id=0) const override
virtual std::map< std::string, std::array< double, 2 > > unknown_range() const