Enumerations | Functions | Variables
GlobalParameters Namespace Reference

Namespace for "global" problem parameters. More...

Enumerations

enum  Cases { Spherical_cap_in_cylinder_pinned , All_pinned , Barrel_shape , T_junction_with_nonzero_contact_angle }
 Enumeration for the possible cases. More...
 

Functions

double get_exact_kappa ()
 Exact kappa. More...
 
void spine_base_function (const Vector< double > &x, Vector< double > &spine_B, Vector< Vector< double > > &dspine_B)
 Spine basis: The position vector to the basis of the spine as a function of the two coordinates x_1 and x_2, and its derivatives w.r.t. to these coordinates. dspine_B[i][j] = d spine_B[j] / dx_i Spines start in the (x_1,x_2) plane at (x_1,x_2). More...
 
void spine_function (const Vector< double > &x, Vector< double > &spine, Vector< Vector< double > > &dspine)
 Spine: The spine vector field as a function of the two coordinates x_1 and x_2, and its derivatives w.r.t. to these coordinates: dspine[i][j] = d spine[j] / dx_i. More...
 
void setup_dependent_parameters_and_sanity_check ()
 Setup dependent parameters and perform sanity check. More...
 

Variables

double Controlled_height = 0.0
 Height control value. More...
 
double Alpha_min = MathematicalConstants::Pi/2.0*1.5
 Min. spine angle against horizontal plane. More...
 
double Alpha_max = MathematicalConstants::Pi/2.0*0.5
 Max. spine angle against horizontal plane. More...
 
bool Use_spines = true
 Use spines (true) or not (false) More...
 
bool Use_height_control = true
 Use height control (true) or not (false)? More...
 
int Case = All_pinned
 What case are we considering: Choose one from the enumeration Cases. More...
 
double Gamma = MathematicalConstants::Pi/4.0
 Contact angle and its cos (dependent parameter – is reassigned) More...
 
double Cos_gamma =cos(Gamma)
 Cos of contact angle. More...
 
Data * Kappa_pt = 0
 Pointer to Data object that stores the prescribed curvature. More...
 
double Kappa_initial = 0.0
 Initial value for kappa. More...
 
int Step_sign = 1
 Increase or decrease the value of the control parameters? More...
 
unsigned Nsteps = 5
 Number of steps. More...
 
double Kappa_increment = -0.05
 Increment for prescribed curvature. More...
 
double Controlled_height_increment = 0.1
 Increment for height control. More...
 
unsigned Control_element = 0
 Number of element in bulk mesh at which height control is applied. Initialise to 0 – will be overwritte in setup_dependent_parameters_and_sanity_check() More...
 
double L_x = 1.0
 Length and width of the domain. More...
 
double L_y = 1.0
 Width of domain. More...
 
unsigned N_x = 8
 Number of elements in the mesh. More...
 
unsigned N_y = 8
 
double Beta_min = MathematicalConstants::Pi/2.0
 Min. second spine angle against horizontal plane. More...
 
double Beta_max = MathematicalConstants::Pi/2.0
 Max. second pine angle against horizontal plane. More...
 
bool Rotate_spines_in_both_directions = true
 Should the spines rotate in the x and y directions (true)? More...
 

Detailed Description

Namespace for "global" problem parameters.

Enumeration Type Documentation

◆ Cases

Enumeration for the possible cases.

Enumerator
Spherical_cap_in_cylinder_pinned 
All_pinned 
Barrel_shape 
T_junction_with_nonzero_contact_angle 

Definition at line 46 of file common_young_laplace_stuff.h.

Function Documentation

◆ get_exact_kappa()

double GlobalParameters::get_exact_kappa ( )

Exact kappa.

Definition at line 54 of file barrel.cc.

References Controlled_height.

Referenced by YoungLaplaceProblem< ELEMENT >::doc_solution().

◆ setup_dependent_parameters_and_sanity_check()

void GlobalParameters::setup_dependent_parameters_and_sanity_check ( )

◆ spine_base_function()

void GlobalParameters::spine_base_function ( const Vector< double > &  x,
Vector< double > &  spine_B,
Vector< Vector< double > > &  dspine_B 
)

Spine basis: The position vector to the basis of the spine as a function of the two coordinates x_1 and x_2, and its derivatives w.r.t. to these coordinates. dspine_B[i][j] = d spine_B[j] / dx_i Spines start in the (x_1,x_2) plane at (x_1,x_2).

Definition at line 72 of file barrel.cc.

Referenced by RefineableYoungLaplaceProblem< ELEMENT >::RefineableYoungLaplaceProblem(), and YoungLaplaceProblem< ELEMENT >::YoungLaplaceProblem().

◆ spine_function()

void GlobalParameters::spine_function ( const Vector< double > &  x,
Vector< double > &  spine,
Vector< Vector< double > > &  dspine 
)

Spine: The spine vector field as a function of the two coordinates x_1 and x_2, and its derivatives w.r.t. to these coordinates: dspine[i][j] = d spine[j] / dx_i.

Spines (and derivatives) are independent of x[0] and rotate in the x[1]-direction

Spines (and derivatives) are independent of x[0] and rotate in the x[1]-direction

Spines are dependent of x[0] AND x[1] and rotate in both directions

Spines (and derivatives) are independent of x[0] and rotate in the x[1]-direction

Spines (and derivatives) are independent of x[0] and rotate in the x[1]-direction

Spines are dependent of x[0] AND x[1] and rotate in both directions

Spines (and derivatives) are independent of x[0] and rotate in the x[1]-direction

Definition at line 104 of file barrel.cc.

References Alpha_max, and Alpha_min.

Referenced by RefineableYoungLaplaceProblem< ELEMENT >::RefineableYoungLaplaceProblem(), and YoungLaplaceProblem< ELEMENT >::YoungLaplaceProblem().

Variable Documentation

◆ Alpha_max

double GlobalParameters::Alpha_max = MathematicalConstants::Pi/2.0*0.5

Max. spine angle against horizontal plane.

Max. first spine angle against horizontal plane.

Definition at line 99 of file barrel.cc.

Referenced by setup_dependent_parameters_and_sanity_check(), and spine_function().

◆ Alpha_min

double GlobalParameters::Alpha_min = MathematicalConstants::Pi/2.0*1.5

Min. spine angle against horizontal plane.

Min. first spine angle against horizontal plane.

Definition at line 96 of file barrel.cc.

Referenced by setup_dependent_parameters_and_sanity_check(), and spine_function().

◆ Beta_max

double GlobalParameters::Beta_max = MathematicalConstants::Pi/2.0

Max. second pine angle against horizontal plane.

Definition at line 116 of file common_young_laplace_stuff.h.

◆ Beta_min

double GlobalParameters::Beta_min = MathematicalConstants::Pi/2.0

Min. second spine angle against horizontal plane.

Definition at line 113 of file common_young_laplace_stuff.h.

◆ Case

int GlobalParameters::Case = All_pinned

What case are we considering: Choose one from the enumeration Cases.

Definition at line 53 of file common_young_laplace_stuff.h.

Referenced by RefineableYoungLaplaceProblem< ELEMENT >::actions_after_adapt(), main(), and setup_dependent_parameters_and_sanity_check().

◆ Control_element

unsigned GlobalParameters::Control_element = 0

Number of element in bulk mesh at which height control is applied. Initialise to 0 – will be overwritte in setup_dependent_parameters_and_sanity_check()

Definition at line 90 of file common_young_laplace_stuff.h.

Referenced by setup_dependent_parameters_and_sanity_check().

◆ Controlled_height

double GlobalParameters::Controlled_height = 0.0

◆ Controlled_height_increment

double GlobalParameters::Controlled_height_increment = 0.1

Increment for height control.

Definition at line 85 of file common_young_laplace_stuff.h.

Referenced by RefineableYoungLaplaceProblem< ELEMENT >::increment_parameters(), and main().

◆ Cos_gamma

double GlobalParameters::Cos_gamma =cos(Gamma)

◆ Gamma

double GlobalParameters::Gamma = MathematicalConstants::Pi/4.0

Contact angle and its cos (dependent parameter – is reassigned)

Definition at line 60 of file common_young_laplace_stuff.h.

Referenced by main(), and setup_dependent_parameters_and_sanity_check().

◆ Kappa_increment

double GlobalParameters::Kappa_increment = -0.05

Increment for prescribed curvature.

Definition at line 82 of file common_young_laplace_stuff.h.

Referenced by RefineableYoungLaplaceProblem< ELEMENT >::increment_parameters().

◆ Kappa_initial

double GlobalParameters::Kappa_initial = 0.0

Initial value for kappa.

Definition at line 67 of file common_young_laplace_stuff.h.

Referenced by setup_dependent_parameters_and_sanity_check().

◆ Kappa_pt

Data* GlobalParameters::Kappa_pt = 0

◆ L_x

double GlobalParameters::L_x = 1.0

Length and width of the domain.

Length of domain.

Definition at line 96 of file common_young_laplace_stuff.h.

Referenced by main(), RefineableYoungLaplaceProblem< ELEMENT >::RefineableYoungLaplaceProblem(), and setup_dependent_parameters_and_sanity_check().

◆ L_y

double GlobalParameters::L_y = 1.0

◆ N_x

unsigned GlobalParameters::N_x = 8

Number of elements in the mesh.

Definition at line 100 of file common_young_laplace_stuff.h.

Referenced by setup_dependent_parameters_and_sanity_check().

◆ N_y

unsigned GlobalParameters::N_y = 8

◆ Nsteps

unsigned GlobalParameters::Nsteps = 5

Number of steps.

Definition at line 79 of file common_young_laplace_stuff.h.

Referenced by main(), and run_it().

◆ Rotate_spines_in_both_directions

bool GlobalParameters::Rotate_spines_in_both_directions = true

Should the spines rotate in the x and y directions (true)?

Definition at line 119 of file common_young_laplace_stuff.h.

Referenced by setup_dependent_parameters_and_sanity_check().

◆ Step_sign

int GlobalParameters::Step_sign = 1

Increase or decrease the value of the control parameters?

Definition at line 76 of file common_young_laplace_stuff.h.

◆ Use_height_control

bool GlobalParameters::Use_height_control = true

Use height control (true) or not (false)?

Definition at line 43 of file common_young_laplace_stuff.h.

Referenced by RefineableYoungLaplaceProblem< ELEMENT >::increment_parameters().

◆ Use_spines

bool GlobalParameters::Use_spines = true

Use spines (true) or not (false)

Definition at line 40 of file common_young_laplace_stuff.h.

Referenced by main().