pipe_variable_diff.cc File Reference

Classes

class  RefineableAdvectionDiffusionPipeProblem< ELEMENT >
 

Namespaces

 Global_Physical_Variables
 Global variables.
 

Functions

void Global_Physical_Variables::wind_function (const Vector< double > &x, Vector< double > &wind)
 Wind. More...
 
void Global_Physical_Variables::swimming (const Vector< double > &x, Vector< double > &swim)
 
void Global_Physical_Variables::diff_function (const Vector< double > &x, DenseMatrix< double > &D)
 
int main ()
 Driver code for 2D AdvectionDiffusion problem. More...
 

Variables

double Global_Physical_Variables::Peclet_St = 1.0
 Peclet number multiplied by Strouhal number. More...
 

Function Documentation

◆ main()

int main ( )

Driver code for 2D AdvectionDiffusion problem.

326 {
327 
328  //Set up the problem
329  //------------------
330 
331  // Create the problem with axisymmetric nine-node refineable elements from the
332  // RefineableQAdvectionDiffusionElement family.
335 
336  //Refine uniformly once
337  problem.refine_uniformly();
338  //Set the initial distribution
339  problem.set_initial_condition();
340  problem.doc_solution();
341 
342  //Set the timestep
343  double dt = 0.001;
344  problem.assign_initial_values_impulsive(dt);
345 
346  //Now take a few timesteps
347  bool first = true;
348  unsigned max_adapt=2;
349  for(unsigned t=0;t<3;t++)
350  {
351  problem.unsteady_newton_solve(dt,max_adapt,first);
352  problem.doc_solution();
353  if(t==0) {first=false;}
354  }
355 
356 } // end of main
Definition: refineable_gen_axisym_advection_diffusion_elements.h:214
t
Definition: plotPSD.py:36
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References problem, and plotPSD::t.