Alamo
Public Member Functions | Static Public Member Functions | Private Attributes
Model::Interface::GB::SH Class Reference
Inheritance diagram for Model::Interface::GB::SH:
[legend]
Collaboration diagram for Model::Interface::GB::SH:
[legend]

Public Member Functions

 SH ()
 
 SH (IO::ParmParse &pp)
 
 SH (IO::ParmParse &pp, std::string name)
 
 SH (const amrex::Real a_theta0, const amrex::Real a_phi0, const amrex::Real a_sigma0, const amrex::Real a_sigma1)
 
void Define (const amrex::Real a_theta0, const amrex::Real a_phi0, const amrex::Real a_sigma0, const amrex::Real a_sigma1)
 
void Randomize ()
 
Set::Scalar W (const Set::Scalar a_theta, const Set::Scalar a_phi) const
 
std::array< Set::Scalar, 2 > DW (const Set::Scalar a_theta, const Set::Scalar a_phi) const
 
virtual Set::Scalar W (const Set::Vector &a_n) const override
 
virtual Set::Scalar DW (const Set::Vector &a_n, const Set::Vector &t_n) const override
 
virtual Set::Scalar DDW (const Set::Vector &a_n, const Set::Vector &t_n) const override
 
Set::Scalar W (const Set::Scalar) const override
 
Set::Scalar DW (const Set::Scalar) const override
 
Set::Scalar DDW (const Set::Scalar) const override
 
- Public Member Functions inherited from Model::Interface::GB::GB
 GB ()
 
virtual ~GB ()
 
void ExportToFile (std::string filename, amrex::Real dTheta)
 
std::tuple< Set::Scalar, Set::ScalarDrivingForce (const Set::Vector &Deta, const Set::Matrix &DDeta, const Set::Matrix4< AMREX_SPACEDIM, Set::Sym::Full > &DDDDeta)
 

Static Public Member Functions

static void Parse (SH &value, amrex::ParmParse &pp)
 

Private Attributes

Set::Scalar theta0 = NAN
 
Set::Scalar phi0 = NAN
 
Set::Scalar sigma0 = NAN
 
Set::Scalar sigma1 = NAN
 

Additional Inherited Members

- Public Types inherited from Model::Interface::GB::GB
enum  Regularization { Wilhelm, K23 }
 
- Protected Attributes inherited from Model::Interface::GB::GB
Regularization regularization = Regularization::Wilhelm
 
- Static Protected Attributes inherited from Model::Interface::GB::GB
static constexpr amrex::Real pi = 3.14159265359
 

Detailed Description

A 2D interface model class. Under construction

Here are some useful trig identities for reference:

\f{align}{\sin(2 \arcsin x) &= 2 x \sqrt{1-x^2} &
          \cos(2 \arcsin x) &= 1 - 2 x^2 \\ %
          \sin(2 \arccos x) &= 2 x \sqrt{1-x^2} &
          \cos(2 \arccos x) &= 2 x^2 - 1 \\ %
          \sin(2 \arctan x) &= \frac{2 x}{1 + x^2}  &
          \cos(2 \arctan x) &= \frac{1-x^2}{1+x^2}    \f}

Specializing for tangent:

\begin{align}\sin(2 \arctan y/x) &= \frac{2 x y}{x^2 + y^2} & \cos(2 \arctan y/x) &= \frac{x^2-y^2}{x^2+y^2} \end{align}

Definition at line 35 of file SH.H.

Constructor & Destructor Documentation

◆ SH() [1/4]

Model::Interface::GB::SH::SH ( )
inline

Definition at line 38 of file SH.H.

◆ SH() [2/4]

Model::Interface::GB::SH::SH ( IO::ParmParse pp)
inline

Definition at line 39 of file SH.H.

◆ SH() [3/4]

Model::Interface::GB::SH::SH ( IO::ParmParse pp,
std::string  name 
)
inline

Definition at line 40 of file SH.H.

◆ SH() [4/4]

Model::Interface::GB::SH::SH ( const amrex::Real  a_theta0,
const amrex::Real  a_phi0,
const amrex::Real  a_sigma0,
const amrex::Real  a_sigma1 
)
inline

Definition at line 41 of file SH.H.

Here is the call graph for this function:

Member Function Documentation

◆ DDW() [1/2]

Set::Scalar Model::Interface::GB::SH::DDW ( const Set::Scalar  ) const
inlineoverridevirtual

Implements Model::Interface::GB::GB.

Definition at line 89 of file SH.H.

◆ DDW() [2/2]

virtual Set::Scalar Model::Interface::GB::SH::DDW ( const Set::Vector a_n,
const Set::Vector t_n 
) const
inlineoverridevirtual

Reimplemented from Model::Interface::GB::GB.

Definition at line 80 of file SH.H.

Here is the call graph for this function:

◆ Define()

void Model::Interface::GB::SH::Define ( const amrex::Real  a_theta0,
const amrex::Real  a_phi0,
const amrex::Real  a_sigma0,
const amrex::Real  a_sigma1 
)
inline

Definition at line 45 of file SH.H.

◆ DW() [1/3]

std::array<Set::Scalar,2> Model::Interface::GB::SH::DW ( const Set::Scalar  a_theta,
const Set::Scalar  a_phi 
) const
inline

Definition at line 62 of file SH.H.

◆ DW() [2/3]

Set::Scalar Model::Interface::GB::SH::DW ( const Set::Scalar  ) const
inlineoverridevirtual

Implements Model::Interface::GB::GB.

Definition at line 88 of file SH.H.

◆ DW() [3/3]

virtual Set::Scalar Model::Interface::GB::SH::DW ( const Set::Vector a_n,
const Set::Vector t_n 
) const
inlineoverridevirtual

Reimplemented from Model::Interface::GB::GB.

Definition at line 75 of file SH.H.

Here is the call graph for this function:

◆ Parse()

static void Model::Interface::GB::SH::Parse ( SH value,
amrex::ParmParse &  pp 
)
inlinestatic

Definition at line 95 of file SH.H.

Here is the call graph for this function:

◆ Randomize()

void Model::Interface::GB::SH::Randomize ( )
inline

Definition at line 52 of file SH.H.

Here is the call graph for this function:

◆ W() [1/3]

Set::Scalar Model::Interface::GB::SH::W ( const Set::Scalar  a_theta,
const Set::Scalar  a_phi 
) const
inline

Definition at line 58 of file SH.H.

◆ W() [2/3]

Set::Scalar Model::Interface::GB::SH::W ( const Set::Scalar  ) const
inlineoverridevirtual

Implements Model::Interface::GB::GB.

Definition at line 87 of file SH.H.

◆ W() [3/3]

virtual Set::Scalar Model::Interface::GB::SH::W ( const Set::Vector a_n) const
inlineoverridevirtual

Reimplemented from Model::Interface::GB::GB.

Definition at line 68 of file SH.H.

Here is the call graph for this function:

Field Documentation

◆ phi0

Set::Scalar Model::Interface::GB::SH::phi0 = NAN
private

Definition at line 92 of file SH.H.

◆ sigma0

Set::Scalar Model::Interface::GB::SH::sigma0 = NAN
private

Definition at line 92 of file SH.H.

◆ sigma1

Set::Scalar Model::Interface::GB::SH::sigma1 = NAN
private

Definition at line 92 of file SH.H.

◆ theta0

Set::Scalar Model::Interface::GB::SH::theta0 = NAN
private

Definition at line 92 of file SH.H.


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