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>
32 virtual Uint dim() = 0;
33 virtual Uint nb_eqs() = 0;
37 virtual Variables* create_variables(
const std::string&
name ) = 0;
55 template <
typename PHYS >
63 typename PHYS::PROPS& cphysp =
static_cast<typename PHYS::PROPS&
>( physp );
64 PHYS::compute_properties( cphysp );
69 typename PHYS::PROPS& cphysp =
static_cast<typename PHYS::PROPS&
>( physp );
70 PHYS::flux_jacobian( cphysp );
81 enum { dimension = 2 };
100 virtual Variables* create_variables(
const std::string&
name );
120 std::cout <<
"u " << p.
u << std::endl;
121 std::cout <<
"v " << p.
v << std::endl;
133 throw std::string(
"no such variable set available");
139 BOOST_AUTO_TEST_SUITE( PhysicsSuite )
184 BOOST_AUTO_TEST_SUITE_END()
virtual void compute_properties(PhysModel::Properties &physp)
virtual void flux_jacobian(PhysModel::Properties &physp)
std::string name(ComponentWrapper &self)
virtual void flux_jacobian(PhysModel::Properties &physp)=0
BOOST_AUTO_TEST_CASE(dynamic_api)
static void compute_properties(PROPS &p)
virtual PhysModel::Properties * create_properties()=0
virtual PhysModel::Properties * create_properties()
Top-level namespace for coolfluid.
virtual Variables * create_variables(const std::string &name)=0
virtual Variables * create_variables(const std::string &name)
unsigned int Uint
typedef for unsigned int
coolfluid3 header, included almost everywhere
static void flux_jacobian(PROPS &p)
virtual void compute_properties(PhysModel::Properties &physp)=0