test-function in variational formulation
Description
This class, and its associated trial
one, is used for test and trial functions involved in variational formulations. Variational formulations are specified by expressions of the C++ language.
A test
function is the formal argument involved in the expression for the integrate
function:
geo omega ("circle");
space Xh (omega, "P1");
test v (Xh);
field lh = integrate (omega, 2*v);
For a bilinear form
, the test
function represents its second formal argument, while its first one is referred to as the trial
one:
trial u (Xh);
test v (Xh);
form a = integrate (omega, dot(grad(u),grad(v)));
Implementation
This documentation has been generated from file main/lib/test.h
The test
and trial
classes are simply aliases to the test_basic
class:
typedef test_basic<Float,rheo_default_memory_model,details::vf_tag_01>
test;
typedef test_basic<Float,rheo_default_memory_model,details::vf_tag_10>
trial;
test_basic< Float, rheo_default_memory_model, details::vf_tag_10 > trial
test_basic< Float, rheo_default_memory_model, details::vf_tag_01 > test
The test_basic
class provides an interface, via the smart_pointer
class family, to a data container:
template <class T, class M, class VfTag>
class test_basic : public smart_pointer<test_rep<T,M> > {
public :
typedef test_rep<T,M>
rep;
typedef smart_pointer<rep>
base;
field::size_type size_type
test_basic< T, M, vf_dual_tag_type > dual_self_type
rep::value_type value_type
rep::space_type space_type
static const space_constant::valued_type valued_hint
size_type n_derivative() const
details::test_component< T, M, VfTag > operator[](size_type i_comp) const
rep::float_type float_type
smart_pointer< rep > base
test_basic(const space_type &V)
test_basic< T, M, VfTag > self_type
rep::memory_type memory_type
const space_type & get_vf_space() const
details::dual_vf_tag< VfTag >::type vf_dual_tag_type
space_constant::valued_type valued_tag() const
rep::scalar_type scalar_type
space_basic< float_type, M > space_type
static const space_constant::valued_type valued_hint
details::differentiate_option::type diff_type
geo_basic< float_type, M > geo_type
undeterminated_basic< T > value_type
float_traits< T >::type float_type