Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
CahnHilliardFunctionDefined< dim > Class Template Reference

#include <cahn_hilliard_boundary_conditions.h>

Inheritance diagram for CahnHilliardFunctionDefined< dim >:
[legend]

Public Member Functions

 CahnHilliardFunctionDefined (Functions::ParsedFunction< dim > *p_phi)
double value (const Point< dim > &p, unsigned int component) const override

Private Attributes

Functions::ParsedFunction< dim > * phi

Detailed Description

template<int dim>
class CahnHilliardFunctionDefined< dim >

Class that implements a boundary conditions for the Cahn-Hilliard equation where the phase and chemical potential are defined using individual functions.

Definition at line 120 of file cahn_hilliard_boundary_conditions.h.

Constructor & Destructor Documentation

◆ CahnHilliardFunctionDefined()

template<int dim>
CahnHilliardFunctionDefined< dim >::CahnHilliardFunctionDefined ( Functions::ParsedFunction< dim > * p_phi)
inline

Initialize the Cahn-Hilliard boundary function with its phase field.

Parameters
[in]p_phiThe parsed function defining the phase field.

Definition at line 131 of file cahn_hilliard_boundary_conditions.h.

References phi.

Member Function Documentation

◆ value()

template<int dim>
double CahnHilliardFunctionDefined< dim >::value ( const Point< dim > & p,
unsigned int component ) const
override

Calculates the value of a Function-type for the Cahn-Hilliard equations.

Parameters
[in]pA point (generally a gauss point)
[in]componentThe vector component of the boundary condition (0-x, 1-y and 2-z)

Definition at line 176 of file cahn_hilliard_boundary_conditions.cc.

References phi.

Member Data Documentation

◆ phi

template<int dim>
Functions::ParsedFunction<dim>* CahnHilliardFunctionDefined< dim >::phi
private

Definition at line 123 of file cahn_hilliard_boundary_conditions.h.


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