all_foeppl_von_karman/axisym_fvk.cc File Reference
#include <fenv.h>
#include "generic.h"
#include "axisym_foeppl_von_karman.h"
#include "meshes/one_d_mesh.h"

Classes

class  AxisymFvKProblem< ELEMENT >
 Problem class. More...
 

Namespaces

 AxisymFvKParameters
 Namespace for pressure solution.
 

Functions

void AxisymFvKParameters::pressure_function (const double &r, double &pressure)
 Function that computes the pressure at radius r. More...
 
void AxisymFvKParameters::get_exact_u (const Vector< double > &r, Vector< double > &u)
 Function to get the exact solution for the pure bending model. More...
 
int main (int argc, char **argv)
 Driver. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver.

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

208 {
209 
210  // Store command line arguments
211  CommandLineArgs::setup(argc,argv);
212 
213  // Define possible command line arguments and parse the ones that
214  // were actually specified
215 
216  // Value of eta
219 
220  // Choose between pure bending or fvk model
221  CommandLineArgs::specify_command_line_flag("--use_linear_eqns");
222 
223  // Output directory
226 
227  // Number of elements in the mesh
228  unsigned n_element=100;
229  CommandLineArgs::specify_command_line_flag("--n_element", &n_element);
230 
231  // Increment displacements
232  unsigned n_step=10; // hierher 10;
233  CommandLineArgs::specify_command_line_flag("--n_step", &n_step);
234 
235  double dp=0.1; // 10;
237 
238  // Parse command line
240 
241  // Doc what has actually been specified on the command line
243 
244  // Set up the problem:
246  problem(n_element);
247 
248  // Set initial value for pressure
250 
251  for (unsigned i=0;i<n_step;i++)
252  {
253  // Solve the problem
254  problem.newton_solve();
255 
256  //Output solution
257  problem.doc_solution();
258 
259  // Increment pressure
261  }
262 
263  cout << "\n Done \n" << std::endl;
264 
265 } // end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Problem class.
Definition: all_foeppl_von_karman/axisym_displ_based_fvk.cc:79
double Eta
FvK parameter.
Definition: all_foeppl_von_karman/axisym_displ_based_fvk.cc:58
string Directory
Directory.
Definition: all_foeppl_von_karman/axisym_displ_based_fvk.cc:70
double Pressure
Constant pressure.
Definition: all_foeppl_von_karman/axisym_displ_based_fvk.cc:49
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
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
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References AxisymFvKParameters::Directory, oomph::CommandLineArgs::doc_specified_flags(), AxisymFvKParameters::Eta, i, oomph::CommandLineArgs::parse_and_assign(), AxisymFvKParameters::Pressure, problem, Flag_definition::setup(), and oomph::CommandLineArgs::specify_command_line_flag().