one_d_act_inhibit.cc File Reference

Classes

class  RefineableOneDAdvectionDiffusionReactionProblem< ELEMENT >
 

Namespaces

 GlobalVariables
 

Functions

void GlobalVariables::activator_inhibitor_reaction (const Vector< double > &C, Vector< double > &R)
 
void GlobalVariables::activator_inhibitor_reaction_derivative (const Vector< double > &C, DenseMatrix< double > &dRdC)
 Derivative of simple reaction kinetics above. More...
 
int main ()
 Driver code for 1D AdvectionDiffusionReaction problem. More...
 

Variables

Vector< doubleGlobalVariables::Tau (2, 1.0)
 The vector of timescales. More...
 
Vector< doubleGlobalVariables::D (2, 1.0)
 The vector of diffusion coefficients. More...
 
double GlobalVariables::A = -0.1
 Bifurcation (loss) parameter. More...
 

Function Documentation

◆ main()

int main ( )

Driver code for 1D AdvectionDiffusionReaction problem.

297 {
298  //Diffusive length-scale
299  double epsilon = 0.05;
300  //Set the control parameters
301  GlobalVariables::Tau[1] = 0.2;
303  GlobalVariables::A = -0.4;
304 
305  //Set the (largeish) timestep
306  double dt = 0.1;
307 
308  //Set up the problem
309  //------------------
310  // DREIGIAU: There's an inherent problem with the 1D elements. Doesn't
311  // seem to be a problem with 2D elements but we can't even initialise
312  // a new object of the type used to template the problem below.
313 
314  // Create the problem with 1D three-node refineable elements from the
315  // RefineableLineAdvectionDiffusionReactionElement family.
318 
319  //Take four levels of uniform refinement to start things off
320  for(unsigned i=0;i<4;i++) { problem.refine_uniformly(); }
321 
322  //Now timestep the problem
323  problem.timestep(dt,10);
324 
325 } // End of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: one_d_act_inhibit.cc:84
Definition: refineable_advection_diffusion_reaction_elements.h:211
Vector< double > D(2, 1.0)
The vector of diffusion coefficients.
double A
Bifurcation (loss) parameter.
Definition: one_d_act_inhibit.cc:52
Vector< double > Tau(2, 1.0)
The vector of timescales.
double epsilon
Definition: osc_ring_sarah_asymptotics.h:43
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References GlobalVariables::A, GlobalVariables::D, oomph::SarahBL::epsilon, i, problem, and GlobalVariables::Tau.