all_foeppl_von_karman/axisym_displ_based_fvk.cc File Reference
#include <fenv.h>
#include "generic.h"
#include "axisym_displ_based_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...
 

Variables

double AxisymFvKParameters::Pressure =0.0
 Constant pressure. More...
 
double AxisymFvKParameters::Eta = 2.39e6
 FvK parameter. More...
 
double AxisymFvKParameters::Nu = 0.5
 Poisson ratio. More...
 
string AxisymFvKParameters::Directory = "RESLT"
 Directory. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver.

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

216 {
217 
218 
219  // Store command line arguments
220  CommandLineArgs::setup(argc,argv);
221 
222  // Choose between pure bending or fvk model
223  CommandLineArgs::specify_command_line_flag("--use_linear_eqns");
224 
225  // Parse command line
227 
228  // Doc what has actually been specified on the command line
230 
231  // Number of elements in the mesh
232  unsigned n_element=100;
233 
234  // Number of steps
235  unsigned n_step=10;
236 
237  // Pressure increment
238  double dp=0.1; // 0.01;
239 
240  // Set up the problem:
242 
243  // Set initial value for pressure
245 
246  for (unsigned i=0;i<n_step;i++)
247  {
248  // Solve the problem
249  problem.newton_solve();
250 
251  //Output solution
252  problem.doc_solution();
253 
254  // Increment pressure
256  }
257 
258 } // 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 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 oomph::CommandLineArgs::doc_specified_flags(), i, oomph::CommandLineArgs::parse_and_assign(), AxisymFvKParameters::Pressure, problem, Flag_definition::setup(), and oomph::CommandLineArgs::specify_command_line_flag().