two_d_adv_diff_SUPG.cc File Reference

Classes

class  SUPGAdvectionDiffusionProblem< ELEMENT >
 

Namespaces

 GlobalPhysicalParameters
 Namespace for Womersley problem.
 

Functions

void GlobalPhysicalParameters::get_boundary_values (const Vector< double > &x, Vector< double > &u)
 Some "solution" for assignment of boundary values. More...
 
void GlobalPhysicalParameters::source_function (const Vector< double > &x_vect, double &source)
 Zero source function. More...
 
void GlobalPhysicalParameters::wind_function (const Vector< double > &x, Vector< double > &wind)
 Wind. More...
 
int main ()
 Driver code for 2D AdvectionDiffusion problem. More...
 

Variables

double GlobalPhysicalParameters::Peclet =200.0
 Peclet number. More...
 
double GlobalPhysicalParameters::Alpha =50.0
 Parameter for steepness of step in boundary values. More...
 
double GlobalPhysicalParameters::TanPhi =1.0
 Parameter for angle of step in boundary values: 45 degrees. More...
 

Function Documentation

◆ main()

int main ( )

Driver code for 2D AdvectionDiffusion problem.

318 {
319 
320  //Set up the problem with stabilisation
321  {
322  bool use_stabilisation=true;
323 
324  // Create the problem with 2D nine-node elements from the
325  // QAdvectionDiffusionElement family. Pass pointer to
326  // source and wind function.
330  use_stabilisation);
331 
332  // Solve the problem
333  problem.newton_solve();
334 
335  //Output the solution
336  problem.doc_solution();
337 
338  }
339 
340 
341 
342  //Set up the problem without stabilisation
343  {
344 
345  bool use_stabilisation=false;
346 
347  // Create the problem with 2D nine-node elements from the
348  // QAdvectionDiffusionElement family. Pass pointer to
349  // source and wind function.
353  use_stabilisation);
354 
355  // Solve the problem
356  problem.newton_solve();
357 
358  //Output the solution
359  problem.doc_solution();
360 
361  }
362 
363 
364 
365 } // end of main
Definition: two_d_adv_diff_SUPG.cc:94
void wind_function(const Vector< double > &x, Vector< double > &wind)
Wind.
Definition: two_d_adv_diff_SUPG.cc:73
void source_function(const Vector< double > &x_vect, double &source)
Zero source function.
Definition: two_d_adv_diff_SUPG.cc:67
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References problem, GlobalPhysicalParameters::source_function(), and GlobalPhysicalParameters::wind_function().