v0.14.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CoordsAndHandle Struct Reference
Collaboration diagram for CoordsAndHandle:
[legend]

Public Member Functions

 CoordsAndHandle (const double *coords, EntityHandle v)
 

Static Public Member Functions

static double getArg (double x)
 

Public Attributes

int x
 
int y
 
int z
 
EntityHandle node
 

Detailed Description

Examples
prism_elements_from_surface.cpp.

Definition at line 25 of file prism_elements_from_surface.cpp.

Constructor & Destructor Documentation

◆ CoordsAndHandle()

CoordsAndHandle::CoordsAndHandle ( const double coords,
EntityHandle  v 
)
inline

Definition at line 33 of file prism_elements_from_surface.cpp.

34  : x(getArg(coords[0])), y(getArg(coords[1])), z(getArg(coords[2])),
35  node(v) {}

Member Function Documentation

◆ getArg()

static double CoordsAndHandle::getArg ( double  x)
inlinestatic
Examples
prism_elements_from_surface.cpp.

Definition at line 27 of file prism_elements_from_surface.cpp.

27  {
28  return std::round(x * pow(10., precision_exponent - 1));
29  };

Member Data Documentation

◆ node

EntityHandle CoordsAndHandle::node

Definition at line 32 of file prism_elements_from_surface.cpp.

◆ x

int CoordsAndHandle::x

Definition at line 29 of file prism_elements_from_surface.cpp.

◆ y

int CoordsAndHandle::y

Definition at line 31 of file prism_elements_from_surface.cpp.

◆ z

int CoordsAndHandle::z

Definition at line 31 of file prism_elements_from_surface.cpp.


The documentation for this struct was generated from the following file:
CoordsAndHandle::x
int x
Definition: prism_elements_from_surface.cpp:29
CoordsAndHandle::node
EntityHandle node
Definition: prism_elements_from_surface.cpp:32
CoordsAndHandle::y
int y
Definition: prism_elements_from_surface.cpp:31
CoordsAndHandle::getArg
static double getArg(double x)
Definition: prism_elements_from_surface.cpp:27
precision_exponent
static constexpr int precision_exponent
Definition: prism_elements_from_surface.cpp:16
v
const double v
phase velocity of light in medium (cm/ns)
Definition: initial_diffusion.cpp:40
CoordsAndHandle::z
int z
Definition: prism_elements_from_surface.cpp:31