7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for cf3::physics::PhysModel"
12 #include <boost/test/unit_test.hpp>
13 #include <boost/mpl/void.hpp>
21 BOOST_AUTO_TEST_SUITE( PhysicsStaticSuite )
23 template<typename T1=
boost::mpl::void_, typename T2=
boost::mpl::void_, typename T3=
boost::mpl::void_, typename T4=
boost::mpl::void_, typename T5=
boost::mpl::void_>
28 template<typename T1, typename T2>
29 struct ComposedPhysics<T1, T2,
boost::mpl::void_,
boost::mpl::void_,
boost::mpl::void_> : T1, T2
32 template<
typename PhysicsT>
48 template<
typename T1,
typename T2,
typename T3>
52 template<
typename PhysicsT>
70 template<
typename T1,
typename T2,
typename T3,
typename T4>
74 template<
typename PhysicsT>
139 physics.cp = 1010. * (physics.temperature + 1.) / physics.temperature;
141 physics.r = physics.cp - physics.cp / physics.gamma;
154 physics.rho = physics.p / (physics.r * physics.temperature);
165 physics.temperature = 288.;
167 BOOST_CHECK_CLOSE(physics.rho, 1.21497, 0.01);
172 BOOST_AUTO_TEST_SUITE_END()
Non-isothermal fluid (assume we get the temperature from somewhere else)
external boost library namespace
void compute(PhysicsT &physics)
Compute the physics in the supplied argument (used mainly for recursion)
BOOST_AUTO_TEST_CASE(PhysicsStatic)
Real gamma
Isentropic coefficient.
Real r
Ideal gas constant.
void compute(PhysicsT &physics)
Compute the physics in the supplied argument (used mainly for recursion)
void compute()
Compute physics properties.
void compute()
Compute physics properties.
void compute()
Compute physics properties.
Store local fluid properties.
Properties of air that depend on temperature.
Top-level namespace for coolfluid.
void compute(T &)
Empty computation, properties come from the solution.
void compute(PhysicsT &physics)
Compute the physics in the supplied argument (used mainly for recursion)
coolfluid3 header, included almost everywhere
Prototype implementation of a static physics model. Compose up to 5 physical models.
void compute(T &physics)
Compute the properties from the temperature.
Use the perfect gas law to get density.