barrel.cc File Reference

Classes

class  YoungLaplaceProblem< ELEMENT >
 

Namespaces

 GlobalParameters
 Global parameters.
 

Functions

double GlobalParameters::get_exact_kappa ()
 Exact kappa. More...
 
void GlobalParameters::spine_base_function (const Vector< double > &x, Vector< double > &spine_B, Vector< Vector< double > > &dspine_B)
 
void GlobalParameters::spine_function (const Vector< double > &x, Vector< double > &spine, Vector< Vector< double > > &dspine)
 
int main ()
 Driver code. More...
 

Variables

double GlobalParameters::Controlled_height = 0.0
 Height control value. More...
 
double GlobalParameters::Alpha_min = MathematicalConstants::Pi/2.0*1.5
 Min. spine angle against horizontal plane. More...
 
double GlobalParameters::Alpha_max = MathematicalConstants::Pi/2.0*0.5
 Max. spine angle against horizontal plane. More...
 

Function Documentation

◆ main()

int main ( )

Driver code.

322 {
323 
324  // Create label for output
325  DocInfo doc_info;
326 
327  // Set output directory
328  doc_info.set_directory("RESLT");
329 
330  //Open a trace file
331  ofstream trace_file;
332  char filename[100];
333  sprintf(filename,"%s/trace.dat",doc_info.directory().c_str());
334  trace_file.open(filename);
335 
336  // Write kappa, exact kappa and height values
337  trace_file
338  << "VARIABLES=\"<GREEK>k</GREEK>\",\"<GREEK>k</GREEK>_{ex}\",\"h\""
339  << std::endl;
340  trace_file << "ZONE" << std::endl;
341 
342  // Create the problem
343  //-------------------
344 
345  // Create the problem with 2D nine-node elements from the
346  // QYoungLaplaceElement family.
348 
349  //Output the solution
350  problem.doc_solution(doc_info,trace_file);
351 
352  //Increment counter for solutions
353  doc_info.number()++;
354 
355 
356  // Parameter incrementation
357  //-------------------------
358  double increment=0.1;
359 
360  // Loop over steps
361  unsigned nstep=2; // 10;
362  for (unsigned istep=0;istep<nstep;istep++)
363  {
364 
365  // Increment prescribed height value
367 
368  // Solve the problem
369  problem.newton_solve();
370 
371  //Output the solution
372  problem.doc_solution(doc_info,trace_file);
373 
374  //Increment counter for solutions
375  doc_info.number()++;
376 
377  }
378 
379  // Close output file
380  trace_file.close();
381 
382 } // end of main
Definition: barrel.cc:140
Definition: oomph_utilities.h:499
std::string directory() const
Output directory.
Definition: oomph_utilities.h:524
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
double Controlled_height
Height control value.
Definition: barrel.cc:51
string filename
Definition: MergeRestartFiles.py:39
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References GlobalParameters::Controlled_height, oomph::DocInfo::directory(), MergeRestartFiles::filename, oomph::DocInfo::number(), problem, and oomph::DocInfo::set_directory().