Alamo
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
IC::Voronoi Class Reference
Inheritance diagram for IC::Voronoi:
[legend]
Collaboration diagram for IC::Voronoi:
[legend]

Public Types

enum  Type { Partition, Values }
 

Public Member Functions

 Voronoi (amrex::Vector< amrex::Geometry > &_geom)
 
 Voronoi (amrex::Vector< amrex::Geometry > &_geom, IO::ParmParse &pp, std::string name)
 
 Voronoi (amrex::Vector< amrex::Geometry > &_geom, int _number_of_grains, Set::Scalar a_alpha)
 
 Voronoi (amrex::Vector< amrex::Geometry > &a_geom, int a_number_of_grains)
 
void Define (int a_number_of_grains, Set::Scalar a_alpha)
 
void Define (int a_number_of_grains, std::vector< Set::Scalar > a_alpha, Type a_type=Type::Values)
 
void Add (const int &lev, Set::Field< Set::Scalar > &a_field, Set::Scalar)
 
- Public Member Functions inherited from IC::IC
 IC (amrex::Vector< amrex::Geometry > &_geom)
 
virtual ~IC ()
 
virtual void Add (const int &lev, Set::Field< Set::Scalar > &field)
 
virtual void Add (const int &, Set::Field< Set::Vector > &, Set::Scalar)
 
void Initialize (const int &a_lev, Set::Field< Set::Scalar > &a_field, Set::Scalar a_time=0.0)
 
void Initialize (const int &a_lev, Set::Field< Set::Vector > &a_field, Set::Scalar a_time=0.0)
 
virtual void SetComp (int a_comp) final
 

Static Public Member Functions

static void Parse (Voronoi &value, IO::ParmParse &pp)
 

Private Attributes

int number_of_grains
 
int seed = 1
 
std::vector< Set::Scalaralpha
 
std::vector< Set::Vectorvoronoi
 
Type type
 

Additional Inherited Members

- Protected Attributes inherited from IC::IC
amrex::Vector< amrex::Geometry > & geom
 
int comp = 0
 

Detailed Description

Definition at line 10 of file Voronoi.H.

Member Enumeration Documentation

◆ Type

Enumerator
Partition 
Values 

Definition at line 13 of file Voronoi.H.

Constructor & Destructor Documentation

◆ Voronoi() [1/4]

IC::Voronoi::Voronoi ( amrex::Vector< amrex::Geometry > &  _geom)
inline

Definition at line 15 of file Voronoi.H.

◆ Voronoi() [2/4]

IC::Voronoi::Voronoi ( amrex::Vector< amrex::Geometry > &  _geom,
IO::ParmParse pp,
std::string  name 
)
inline

Definition at line 16 of file Voronoi.H.

◆ Voronoi() [3/4]

IC::Voronoi::Voronoi ( amrex::Vector< amrex::Geometry > &  _geom,
int  _number_of_grains,
Set::Scalar  a_alpha 
)
inline

Definition at line 18 of file Voronoi.H.

Here is the call graph for this function:

◆ Voronoi() [4/4]

IC::Voronoi::Voronoi ( amrex::Vector< amrex::Geometry > &  a_geom,
int  a_number_of_grains 
)
inline

Definition at line 22 of file Voronoi.H.

Here is the call graph for this function:

Member Function Documentation

◆ Add()

void IC::Voronoi::Add ( const int &  lev,
Set::Field< Set::Scalar > &  a_field,
Set::Scalar   
)
inlinevirtual

Implements IC::IC.

Definition at line 50 of file Voronoi.H.

◆ Define() [1/2]

void IC::Voronoi::Define ( int  a_number_of_grains,
Set::Scalar  a_alpha 
)
inline

Definition at line 27 of file Voronoi.H.

◆ Define() [2/2]

void IC::Voronoi::Define ( int  a_number_of_grains,
std::vector< Set::Scalar a_alpha,
Type  a_type = Type::Values 
)
inline

Definition at line 32 of file Voronoi.H.

Here is the call graph for this function:

◆ Parse()

static void IC::Voronoi::Parse ( Voronoi value,
IO::ParmParse pp 
)
inlinestatic

Definition at line 112 of file Voronoi.H.

Here is the call graph for this function:

Field Documentation

◆ alpha

std::vector<Set::Scalar> IC::Voronoi::alpha
private

Definition at line 130 of file Voronoi.H.

◆ number_of_grains

int IC::Voronoi::number_of_grains
private

Definition at line 128 of file Voronoi.H.

◆ seed

int IC::Voronoi::seed = 1
private

Definition at line 129 of file Voronoi.H.

◆ type

Type IC::Voronoi::type
private

Definition at line 132 of file Voronoi.H.

◆ voronoi

std::vector<Set::Vector> IC::Voronoi::voronoi
private

Definition at line 131 of file Voronoi.H.


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