displacement_based_circular_disk.cc File Reference
#include <fenv.h>
#include "generic.h"
#include "foeppl_von_karman.h"
#include "meshes/triangle_mesh.h"

Classes

class  UnstructuredFvKProblem< ELEMENT >
 Class definition. More...
 

Namespaces

 GlobalParameters
 Global parameters.
 

Functions

void GlobalParameters::get_pressure (const Vector< double > &x, double &pressure)
 Pressure depending on the position (x,y) More...
 
void GlobalParameters::zero (const Vector< double > &x, Vector< double > &u)
 
int main (int argc, char **argv)
 Driver code for demo of inline triangle mesh generation. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for demo of inline triangle mesh generation.

564 {
565 
566  // Store command line arguments
567  CommandLineArgs::setup(argc,argv);
568 
569  // Define possible command line arguments and parse the ones that
570  // were actually specified
572 
573  // Parse command line
575 
576  // Doc what has actually been specified on the command line
578 
579  // Problem instance
581  problem(0.01);
582 
583  double dp=0.1;
584  unsigned n_step=10;
586  {
587  n_step=2;
588  }
589  for (unsigned i=0;i<n_step;i++)
590  {
591  oomph_info << "Solving for p = " << GlobalParameters::Pressure << std::endl;
592 
593  // Solve the problem
594  problem.newton_solve();
595 
596  //Output solution
597  problem.doc_solution();
598 
599  // Increment pressure
601  }
602 
603 
604 } //End of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Class definition.
Definition: all_foeppl_von_karman/circular_disk.cc:86
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double Pressure
The pressure.
Definition: all_foeppl_von_karman/circular_disk.cc:57
bool command_line_flag_has_been_set(const std::string &flag)
Definition: oomph_utilities.cc:501
void specify_command_line_flag(const std::string &command_line_flag, const std::string &doc)
Specify possible argument-free command line flag.
Definition: oomph_utilities.cc:451
void parse_and_assign(int argc, char *argv[], const bool &throw_on_unrecognised_args)
Definition: oomph_utilities.cc:760
void doc_specified_flags()
Document specified command line flags.
Definition: oomph_utilities.cc:610
OomphInfo oomph_info
Definition: oomph_definitions.cc:319
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References oomph::CommandLineArgs::command_line_flag_has_been_set(), oomph::CommandLineArgs::doc_specified_flags(), i, oomph::oomph_info, oomph::CommandLineArgs::parse_and_assign(), GlobalParameters::Pressure, problem, Flag_definition::setup(), and oomph::CommandLineArgs::specify_command_line_flag().