PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Class_Map< dim > Class Template Reference

Transformation Mapper. More...

#include "Class_Map.hpp"

Public Member Functions

 Class_Map ()
 
 Class_Map (double &X, double &Y, double &Z, double &LL)
 
double mapArea (uint64_t const &area)
 
void mapCenter (double *&center, vector< double > &mapcenter)
 
void mapCenter (vector< double > &center, vector< double > &mapcenter)
 
void mapNode (vector< uint32_t > &node, vector< double > &mapnode)
 
void mapNodes (uint32_t(*nodes)[3], vector< vector< double > > &mapnodes)
 
void mapNodes (vector< vector< uint32_t > > nodes, vector< vector< double > > &mapnodes)
 
void mapNodesIntersection (uint32_t(*nodes)[3], vector< vector< double > > &mapnodes)
 
void mapNodesIntersection (vector< vector< uint32_t > > nodes, vector< vector< double > > &mapnodes)
 
void mapNormals (vector< int8_t > normal, vector< double > &mapnormal)
 
double mapSize (uint32_t const &size)
 
double mapVolume (uint64_t const &volume)
 
double mapX (uint32_t const &X)
 
uint32_t mapX (double const &X)
 
double mapY (uint32_t const &Y)
 
uint32_t mapY (double const &Y)
 
double mapZ (uint32_t const &Z)
 
uint32_t mapZ (double const &Z)
 

Public Attributes

Class_Global< dim > globals
 
double L
 
double X0
 
double Y0
 
double Z0
 

Detailed Description

template<int dim>
class Class_Map< dim >

Transformation Mapper.

Date
23/apr/2014
Authors
Edoardo Lombardi
Marco Cisternino
Version
0.1
License:
This version of PABLO is released under the LGPL License.

Definition of the transformation from the logical domain to the physical domain. It contains a default (temporary) implementation of a scaling and translation mapper of logical octree. Class_Map has to be implemented and customized by the user for different applications.

Definition at line 42 of file Class_Map.hpp.

Constructor & Destructor Documentation

template<int dim>
Class_Map< dim >::Class_Map ( )

Default constructor. Origin of octree in physical domain in (0,0,0) and side length 1.

Definition at line 9 of file Class_Map.tpp.

template<int dim>
Class_Map< dim >::Class_Map ( double &  X,
double &  Y,
double &  Z,
double &  LL 
)

Customized constructor with origin of octree in physical domain side length provided by the user.

Parameters
[in]XCoordinate X of the origin.
[in]YCoordinate Y of the origin.
[in]ZCoordinate Z of the origin.
[in]LLSide length of domain.

Definition at line 22 of file Class_Map.tpp.

Member Function Documentation

template<int dim>
double Class_Map< dim >::mapArea ( uint64_t const &  area)

Transformation of area of an octant.

Parameters
[in]areaArea of octant from logical domain.
Returns
Area of octant in physical domain.

Definition at line 68 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapCenter ( double *&  center,
vector< double > &  mapcenter 
)

Transformation of coordinates of center of an octant.

Parameters
[in]centerPointer to coordinates of center from logical domain.
[out]mapcenterCoordinates of center in physical domain.

Definition at line 78 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapCenter ( vector< double > &  center,
vector< double > &  mapcenter 
)

Transformation of coordinates of center of an octant.

Parameters
[in]centerVector of coordinates of center from logical domain.
[out]mapcenterCoordinates of center in physical domain.

Definition at line 100 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapNode ( vector< uint32_t > &  node,
vector< double > &  mapnode 
)

Transformation of coordinates of a node of an octant.

Parameters
[in]nodeCoordinates of the node from logical domain.
[out]mapnodesCoordinates of the node in physical domain.

Definition at line 179 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapNodes ( uint32_t(*)  nodes[3],
vector< vector< double > > &  mapnodes 
)

Transformation of coordinates of nodes of an octant.

Parameters
[in]nodesPointer to coordinates of nodes from logical domain.
[out]mapnodesCoordinates of nodes in physical domain.

Definition at line 122 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapNodes ( vector< vector< uint32_t > >  nodes,
vector< vector< double > > &  mapnodes 
)

Transformation of coordinates of nodes of an octant.

Parameters
[in]nodesVector of coordinates of nodes from logical domain.
[out]mapnodesCoordinates of nodes in physical domain.

Definition at line 151 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapNodesIntersection ( uint32_t(*)  nodes[3],
vector< vector< double > > &  mapnodes 
)

Transformation of coordinates of nodes of an intersection.

Parameters
[in]nodesPointer to coordinates of nodes from logical domain.
[out]mapnodesCoordinates of nodes in physical domain.

Definition at line 197 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapNodesIntersection ( vector< vector< uint32_t > >  nodes,
vector< vector< double > > &  mapnodes 
)

Transformation of coordinates of nodes of an intersection.

Parameters
[in]nodesPointer to coordinates of nodes from logical domain.
[out]mapnodesCoordinates of nodes in physical domain.

Definition at line 225 of file Class_Map.tpp.

template<int dim>
void Class_Map< dim >::mapNormals ( vector< int8_t >  normal,
vector< double > &  mapnormal 
)

Transformation of components of normal of an intersection.

Parameters
[in]nodesPointer to components of normal from logical domain.
[out]mapnodescomponents of normal in physical domain.

Definition at line 253 of file Class_Map.tpp.

template<int dim>
double Class_Map< dim >::mapSize ( uint32_t const &  size)

Transformation of size of an octant.

Parameters
[in]sizeSize of octant from logical domain.
Returns
Size of octant in physical domain.

Definition at line 63 of file Class_Map.tpp.

template<int dim>
double Class_Map< dim >::mapVolume ( uint64_t const &  volume)

Transformation of volume of an octant.

Parameters
[in]volumeVolume of octant from logical domain.
Returns
Coordinate Volume of octant in physical domain.

Definition at line 73 of file Class_Map.tpp.

template<int dim>
double Class_Map< dim >::mapX ( uint32_t const &  X)

Transformation of coordinate X.

Parameters
[in]XCoordinate X from logical domain.
Returns
Coordinate X in physical domain.

Definition at line 33 of file Class_Map.tpp.

template<int dim>
uint32_t Class_Map< dim >::mapX ( double const &  X)

Transformation of coordinate X.

Parameters
[in]XCoordinate X from physical domain.
Returns
Coordinate X in logical domain.

Definition at line 48 of file Class_Map.tpp.

template<int dim>
double Class_Map< dim >::mapY ( uint32_t const &  Y)

Transformation of coordinate Y.

Parameters
[in]YCoordinate Y from logical domain.
Returns
Coordinate Y in physical domain.

Definition at line 38 of file Class_Map.tpp.

template<int dim>
uint32_t Class_Map< dim >::mapY ( double const &  Y)

Transformation of coordinate Y.

Parameters
[in]YCoordinate Y from physical domain.
Returns
Coordinate Y in logical domain.

Definition at line 53 of file Class_Map.tpp.

template<int dim>
double Class_Map< dim >::mapZ ( uint32_t const &  Z)

Transformation of coordinate Z.

Parameters
[in]ZCoordinate Z from logical domain.
Returns
Coordinate Z in physical domain.

Definition at line 43 of file Class_Map.tpp.

template<int dim>
uint32_t Class_Map< dim >::mapZ ( double const &  Z)

Transformation of coordinate Z.

Parameters
[in]ZCoordinate Z from physical domain.
Returns
Coordinate Z in logical domain.

Definition at line 58 of file Class_Map.tpp.

Member Data Documentation

template<int dim>
Class_Global<dim> Class_Map< dim >::globals

Global variables

Definition at line 51 of file Class_Map.hpp.

template<int dim>
double Class_Map< dim >::L

Side length of octree in the physical domain

Definition at line 50 of file Class_Map.hpp.

template<int dim>
double Class_Map< dim >::X0

Coordinate X of the origin of the octree in the physical domain

Definition at line 47 of file Class_Map.hpp.

template<int dim>
double Class_Map< dim >::Y0

Coordinate Y of the origin of the octree in the physical domain

Definition at line 48 of file Class_Map.hpp.

template<int dim>
double Class_Map< dim >::Z0

Coordinate Z of the origin of the octree in the physical domain

Definition at line 49 of file Class_Map.hpp.


The documentation for this class was generated from the following files: