steady_rot.cc File Reference

Classes

class  SphericalSteadyRotationProblem< ELEMENT >
 SteadyRotation problem in a sphere. More...
 

Namespaces

 Global_Physical_Variables
 Global variables.
 
 ExactSolution
 Namespace for exact solution.
 

Functions

void ExactSolution::rigid_body_rotation (const Vector< double > &x, Vector< double > &u)
 The rigid-body rotation solution. More...
 
void ExactSolution::rigid_body_rotation_dr (const Vector< double > &x, Vector< double > &u)
 The r-derivative of the rigid-body rotation solution. More...
 
void ExactSolution::rigid_body_rotation_dtheta (const Vector< double > &x, Vector< double > &u)
 The theta-derivative of the rigid-body rotation solution. More...
 
int main ()
 Driver for SphericalSteadyRotation test problem using a. More...
 

Function Documentation

◆ main()

int main ( )

Driver for SphericalSteadyRotation test problem using a.

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

360 {
361 
362  //Number of elements in each direction
363  unsigned N = 2;
364 
365  ofstream trace("trace_TH.dat");
366 
367  // Doing QTaylorHoodElements
368  for(unsigned i=0;i<2;i++)
369  {
370  N *= 2;
371  // Build the problem with QTaylorHoodElements
373  cout << "Doing QTaylorHoodElement" << std::endl;
374 
375  problem.parameter_study(trace,"TH");
376  } // end of QTaylorHoodElements
377 
378  trace.close();
379  trace.open("trace_CR.dat");
380 
381  N = 2;
382 
383  // Doing QCrouzeixRaviartElements
384  for(unsigned i=0;i<2;i++)
385  {
386  N *= 2;
387  // Build the problem with QCrouzeixRaviartElements
389  cout << "Doing QCrouzeixRaviartElement" << std::endl;
390 
391  problem.parameter_study(trace,"CR");
392  } // end of QCrouzeixRaviartElements
393 
394  trace.close();
395 
396 } // end_of_main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
SteadyRotation problem in a sphere.
Definition: steady_rot.cc:116
@ N
Definition: constructor.cpp:22
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References i, N, and problem.