Electrowetting on dielectric
|
Public Member Functions | |
CHNSE (const Triangulation< dim > &tria, const DataStorage< dim > &data, ConditionalOStream &costream) | |
~CHNSE () | |
void | set_dt (const double _dt) |
void | init () |
void | solve (std::vector< AsFunction< dim > * > &ph_params, std::vector< AsFunction< dim > * > v_params, std::vector< AsFunction< dim > * > &p_params, const double time) |
unsigned | size () const |
const hp::FECollection< dim > & | get_ph_mu_fe () const |
const hp::FECollection< dim > & | get_vel_fe () const |
const hp::FECollection< dim > & | get_pres_fe () const |
Public Attributes | |
AsFunction< dim > & | get_phase |
Phase field. Part of CahnHilliard. | |
AsFunction< dim > & | get_potential |
Chemical potential. Part of CahnHilliard. | |
AsFunction< dim > & | get_old_phase |
Old phase field. Part of CahnHilliard. | |
AsFunction< dim > & | get_velocity |
Velocity. | |
AsFunction< dim > & | get_pressure |
Pressure. | |
AsFunction< dim > & | get_extrapolated_pressure |
. Part of Pressure. | |
Protected Attributes | |
Material_Parameters | params |
Material Parameters. | |
CahnHilliard< dim > | ch |
The CahnHilliard subproblem. | |
Velocity< dim > | vel |
The Velocity subproblem. | |
Pressure< dim > | pres |
The pressure subproblem. | |
ConditionalOStream & | v_cout |
A reference to the conditional ostream for output. |
This class wraps together the CahnHilliard problem and the ones related to Navier Stokes, that is Velocity and Pressure.
The purpose of doing this is to be able to implement an inner fixed point iteration between these problems. This allows for bigger time steps.
CHNSE< dim >::CHNSE | ( | const Triangulation< dim > & | tria, |
const DataStorage< dim > & | data, | ||
ConditionalOStream & | costream | ||
) |
Initialize the subproblems.
tria | : The triangulation where the problems are defined. |
data | : The collection of problem data needed to properly initialize each one of the subproblems |
costream | : The conditional ostream used to send convergence information to. |
Sets the time step in each one of the subproblems.
Calls Problem::init on each one of the subproblems.
void CHNSE< dim >::solve | ( | std::vector< AsFunction< dim > * > & | ph_params, |
std::vector< AsFunction< dim > * > | v_params, | ||
std::vector< AsFunction< dim > * > & | p_params, | ||
const double | time | ||
) |
Solve, via an inner fixed point iteration, the Cahn Hilliard Navier Stokes system.
ph_params | : The collection of AsFunction objects that CahnHilliard needs. |
v_params | : The collection of AsFunction objects that Velocity needs. |
p_params | : The collection of AsFunction objects that Pressure needs. |
time | : The current time. |
Compute the total size of this problem. This is just CahnHilliard.size + Velocity.size + Pressure.size
const hp::FECollection<dim>& CHNSE< dim >::get_ph_mu_fe | ( | ) | const [inline] |
Get the finite element space of CahnHilliard.
Definition at line 69 of file CHNSE.h.
References CHNSE< dim >::ch.
const hp::FECollection<dim>& CHNSE< dim >::get_vel_fe | ( | ) | const [inline] |
Get the finite element space of Velocity.
Definition at line 73 of file CHNSE.h.
References CHNSE< dim >::vel.
const hp::FECollection<dim>& CHNSE< dim >::get_pres_fe | ( | ) | const [inline] |
Get the finite element space of Pressure.
Definition at line 77 of file CHNSE.h.
References CHNSE< dim >::pres.
Material_Parameters CHNSE< dim >::params [protected] |
CahnHilliard<dim> CHNSE< dim >::ch [protected] |
The CahnHilliard subproblem.
Definition at line 55 of file CHNSE.h.
Referenced by CHNSE< dim >::get_ph_mu_fe().
The Velocity subproblem.
Definition at line 56 of file CHNSE.h.
Referenced by CHNSE< dim >::get_vel_fe().
The pressure subproblem.
Definition at line 57 of file CHNSE.h.
Referenced by CHNSE< dim >::get_pres_fe().
ConditionalOStream& CHNSE< dim >::v_cout [protected] |
AsFunction<dim>& CHNSE< dim >::get_phase |
Phase field. Part of CahnHilliard.
AsFunction<dim> & CHNSE< dim >::get_potential |
Chemical potential. Part of CahnHilliard.
AsFunction<dim> & CHNSE< dim >::get_old_phase |
Old phase field. Part of CahnHilliard.
AsFunction<dim> & CHNSE< dim >::get_velocity |
AsFunction<dim> & CHNSE< dim >::get_pressure |
AsFunction<dim> & CHNSE< dim >::get_extrapolated_pressure |