rheolef  6.3
Classes | Typedefs | Enumerations | Functions | Variables
rheolef::space_constant Namespace Reference

Classes

struct  static_initializer_t
struct  valued_tag_traits
struct  valued_tag_traits< point_basic< T > >
struct  valued_tag_traits< tensor_basic< T > >
struct  valued_tag_traits< tensor4_basic< T > >
struct  valued_tag_traits< undeterminated_basic< T > >
struct  valued_type_traits
struct  valued_type_traits< scalar, T >
struct  valued_type_traits< vector, T >
struct  valued_type_traits< tensor, T >
struct  valued_type_traits< tensor4, T >
struct  valued_type_traits< last_valued, T >

Typedefs

typedef size_t size_type

Enumerations

enum  coordinate_type {
  cartesian = 0,
  axisymmetric_rz = 1,
  axisymmetric_zr = 2,
  last_coord_sys = 3
}
enum  valued_type {
  scalar = 0,
  vector = 1,
  tensor = 2,
  unsymmetric_tensor = 3,
  tensor4 = 4,
  mixed = 5,
  last_valued = 6
}

Functions

const std::string & valued_name (valued_type valued_tag)
valued_type valued_tag (const std::string &name)
std::string coordinate_system_name (coordinate_type i)
coordinate_type coordinate_system (std::string sys_coord)
void check_coord_sys_and_dimension (coordinate_type i, size_type d)
size_type n_component (valued_type valued_tag, size_type d, coordinate_type sys_coord)
size_type n_component (const std::string &valued, size_type d, coordinate_type sys_coord)
size_type tensor_index (valued_type valued_tag, coordinate_type sys_coord, size_type i, size_type j)
size_type tensor_index (std::string valued, std::string sys_coord, size_type i, size_type j)
std::pair< size_type, size_typetensor_subscript (valued_type valued_tag, coordinate_type sys_coord, size_type i_comp)
std::string tensor_subscript_name (valued_type valued_tag, coordinate_type sys_coord, size_type i_comp)
std::pair< size_type, size_typetensor_subscript (std::string valued, std::string sys_coord, size_type i_comp)
std::string tensor_subscript_name (std::string valued, std::string sys_coord, size_type i_comp)
size_type tensor4_index (valued_type valued, coordinate_type sys_coord, size_type i, size_type j, size_type k, size_type l)
size_type tensor4_index (std::string valued, std::string sys_coord, size_type i, size_type j, size_type k, size_type l)
std::pair< std::pair
< size_type, size_type >
, std::pair< size_type,
size_type > > 
tensor4_subscript (valued_type valued, coordinate_type sys_coord, size_type i_comp)
std::string tensor4_subscript_name (valued_type valued, coordinate_type sys_coord, size_type i_comp)
std::pair< std::pair
< size_type, size_type >
, std::pair< size_type,
size_type > > 
tensor4_subscript (std::string valued, std::string sys_coord, size_type i_comp)
std::string tensor4_subscript_name (std::string valued, std::string sys_coord, size_type i_comp)
valued_type multiplies_result_tag (space_constant::valued_type tag1, space_constant::valued_type tag2)
valued_type divides_result_tag (space_constant::valued_type tag1, space_constant::valued_type tag2)

Variables

static const std::string valued_id [last_valued]
static const char *const coord_sys_table [last_coord_sys]
static const size_type symmetric_tensor_index [3][3]
static const char *const symmetric_tensor_subscript_name [6]
static const size_type unsymmetric_tensor_index [3][3]
static const char *const unsymmetric_tensor_subscript_name [9]
static std::pair< size_type,
size_type
symmetric_tensor_subscript [6]
static std::pair< size_type,
size_type
unsymmetric_tensor_subscript [9]
static const size_type symmetric_tensor4_index [6][6]
static std::pair< std::pair
< size_type, size_type >
, std::pair< size_type,
size_type > > 
symmetric_tensor4_subscript [21]
static const char *const symmetric_tensor4_subscript_name [21]
static std::pair< std::pair
< size_type, size_type >
, std::pair< size_type,
size_type > > 
symmetric_tensor4_subscript_rz [10]
static const char *const symmetric_tensor4_subscript_rz_name [10]
static const valued_type multiplies_result_tag_table [tensor+1][tensor+1]
static const valued_type divides_result_tag_table [tensor+1][tensor+1]
static static_initializer_t dummy

Typedef Documentation

Definition at line 9 of file space_constant.h.

Enumeration Type Documentation

Enumerator:
cartesian 
axisymmetric_rz 
axisymmetric_zr 
last_coord_sys 

Definition at line 12 of file space_constant.h.

Enumerator:
scalar 
vector 
tensor 
unsymmetric_tensor 
tensor4 
mixed 
last_valued 

Definition at line 23 of file space_constant.h.

Function Documentation

const std::string & rheolef::space_constant::valued_name ( valued_type  valued_tag)

Definition at line 17 of file space_constant.cc.

valued_type rheolef::space_constant::valued_tag ( const std::string &  name)

Definition at line 24 of file space_constant.cc.

std::string rheolef::space_constant::coordinate_system_name ( coordinate_type  i)

Definition at line 40 of file space_constant.cc.

coordinate_type rheolef::space_constant::coordinate_system ( std::string  sys_coord)

Definition at line 46 of file space_constant.cc.

void rheolef::space_constant::check_coord_sys_and_dimension ( coordinate_type  i,
size_type  d 
)

Definition at line 54 of file space_constant.cc.

size_type rheolef::space_constant::n_component ( valued_type  valued_tag,
size_type  d,
coordinate_type  sys_coord 
)

Definition at line 131 of file space_constant.cc.

size_type rheolef::space_constant::n_component ( const std::string &  valued,
size_type  d,
coordinate_type  sys_coord 
)

Definition at line 168 of file space_constant.cc.

size_type rheolef::space_constant::tensor_index ( valued_type  valued_tag,
coordinate_type  sys_coord,
size_type  i,
size_type  j 
)

Definition at line 176 of file space_constant.cc.

size_type rheolef::space_constant::tensor_index ( std::string  valued,
std::string  sys_coord,
size_type  i,
size_type  j 
)

Definition at line 195 of file space_constant.cc.

std::pair< size_type, size_type > rheolef::space_constant::tensor_subscript ( valued_type  valued_tag,
coordinate_type  sys_coord,
size_type  i_comp 
)

Definition at line 204 of file space_constant.cc.

std::string rheolef::space_constant::tensor_subscript_name ( valued_type  valued_tag,
coordinate_type  sys_coord,
size_type  i_comp 
)

Definition at line 222 of file space_constant.cc.

std::pair< size_type, size_type > rheolef::space_constant::tensor_subscript ( std::string  valued,
std::string  sys_coord,
size_type  i_comp 
)

Definition at line 240 of file space_constant.cc.

std::string rheolef::space_constant::tensor_subscript_name ( std::string  valued,
std::string  sys_coord,
size_type  i_comp 
)

Definition at line 249 of file space_constant.cc.

size_type rheolef::space_constant::tensor4_index ( valued_type  valued,
coordinate_type  sys_coord,
size_type  i,
size_type  j,
size_type  k,
size_type  l 
)

Definition at line 363 of file space_constant.cc.

size_type rheolef::space_constant::tensor4_index ( std::string  valued,
std::string  sys_coord,
size_type  i,
size_type  j,
size_type  k,
size_type  l 
)

Definition at line 376 of file space_constant.cc.

std::pair< std::pair< size_type, size_type >, std::pair< size_type, size_type > > rheolef::space_constant::tensor4_subscript ( valued_type  valued,
coordinate_type  sys_coord,
size_type  i_comp 
)

Definition at line 387 of file space_constant.cc.

std::string rheolef::space_constant::tensor4_subscript_name ( valued_type  valued,
coordinate_type  sys_coord,
size_type  i_comp 
)

Definition at line 399 of file space_constant.cc.

std::pair< std::pair< size_type, size_type >, std::pair< size_type, size_type > > rheolef::space_constant::tensor4_subscript ( std::string  valued,
std::string  sys_coord,
size_type  i_comp 
)

Definition at line 411 of file space_constant.cc.

std::string rheolef::space_constant::tensor4_subscript_name ( std::string  valued,
std::string  sys_coord,
size_type  i_comp 
)

Definition at line 420 of file space_constant.cc.

valued_type rheolef::space_constant::multiplies_result_tag ( space_constant::valued_type  tag1,
space_constant::valued_type  tag2 
)

Definition at line 439 of file space_constant.cc.

valued_type rheolef::space_constant::divides_result_tag ( space_constant::valued_type  tag1,
space_constant::valued_type  tag2 
)

Definition at line 445 of file space_constant.cc.

Variable Documentation

const std::string rheolef::space_constant::valued_id[last_valued]
static
Initial value:
{
"scalar",
"vector",
"tensor",
"unsymmetric_tensor",
"tensor4",
"mixed"
}

Definition at line 8 of file space_constant.cc.

const char* const rheolef::space_constant::coord_sys_table[last_coord_sys]
static
Initial value:
{
"cartesian",
"rz",
"zr"
}

Definition at line 34 of file space_constant.cc.

const size_type rheolef::space_constant::symmetric_tensor_index[3][3]
static
Initial value:
{
{ 0, 1, 3},
{ 1, 2, 4},
{ 3, 4, 5}
}

Definition at line 63 of file space_constant.cc.

const char* const rheolef::space_constant::symmetric_tensor_subscript_name[6]
static
Initial value:
{
"00",
"01",
"11",
"02",
"12",
"22"
}

Definition at line 70 of file space_constant.cc.

const size_type rheolef::space_constant::unsymmetric_tensor_index[3][3]
static
Initial value:
{
{ 0, 1, 4},
{ 2, 3, 5},
{ 6, 7, 8}
}

Definition at line 81 of file space_constant.cc.

const char* const rheolef::space_constant::unsymmetric_tensor_subscript_name[9]
static
Initial value:
{
"00",
"01",
"10",
"11",
"02",
"12",
"20",
"21",
"22"
}

Definition at line 88 of file space_constant.cc.

std::pair<size_type,size_type> rheolef::space_constant::symmetric_tensor_subscript[6]
static

Definition at line 126 of file space_constant.cc.

std::pair<size_type,size_type> rheolef::space_constant::unsymmetric_tensor_subscript[9]
static

Definition at line 127 of file space_constant.cc.

const size_type rheolef::space_constant::symmetric_tensor4_index[6][6]
static
Initial value:
{
{ 0, 1, 3, 6, 10, 15},
{ 1, 2, 4, 7, 11, 16},
{ 3, 4, 5, 8, 12, 17},
{ 6, 7, 8, 9, 13, 18},
{ 10, 11, 12, 13, 14, 19},
{ 15, 16, 17, 18, 19, 20}
}

Definition at line 261 of file space_constant.cc.

std::pair<std::pair<size_type,size_type>, std::pair<size_type,size_type> > rheolef::space_constant::symmetric_tensor4_subscript[21]
static

Definition at line 298 of file space_constant.cc.

const char* const rheolef::space_constant::symmetric_tensor4_subscript_name[21]
static
Initial value:
{
"00_00",
"00_01",
"01_01",
"00_11",
"01_11",
"11_11",
"00_02",
"01_02",
"11_02",
"02_02",
"00_12",
"01_12",
"11_12",
"02_12",
"12_12",
"00_22",
"01_22",
"11_22",
"02_22",
"12_22",
"22_22" }

Definition at line 304 of file space_constant.cc.

std::pair<std::pair<size_type,size_type>, std::pair<size_type,size_type> > rheolef::space_constant::symmetric_tensor4_subscript_rz[10]
static

Definition at line 345 of file space_constant.cc.

const char* const rheolef::space_constant::symmetric_tensor4_subscript_rz_name[10]
static
Initial value:
{
"00_00",
"00_01",
"01_01",
"00_11",
"01_11",
"11_11",
"00_22",
"01_22",
"11_22",
"22_22" }

Definition at line 350 of file space_constant.cc.

const valued_type rheolef::space_constant::multiplies_result_tag_table[tensor+1][tensor+1]
static
Initial value:
{
{vector, last_valued, last_valued},
}

Definition at line 428 of file space_constant.cc.

const valued_type rheolef::space_constant::divides_result_tag_table[tensor+1][tensor+1]
static
Initial value:
{
{scalar, last_valued, last_valued},
{vector, last_valued, last_valued},
{tensor, last_valued, last_valued}
}

Definition at line 433 of file space_constant.cc.

static_initializer_t rheolef::space_constant::dummy
static

Definition at line 507 of file space_constant.cc.