jeffery_orbit.cc File Reference
#include "generic.h"
#include "navier_stokes.h"
#include "solid.h"
#include "constitutive.h"
#include "rigid_body.h"
#include "meshes/triangle_mesh.h"
#include "my_taylor_hood_elements.h"
#include <algorithm>

Classes

class  GeneralEllipse
 My own Ellipse class. More...
 
class  UnstructuredImmersedEllipseProblem< ELEMENT >
 

Namespaces

 Problem_Parameter
 Namespace for Problem Parameter.
 
 Jeffery_Solution
 

Functions

double Jeffery_Solution::null (const double &t)
 Null function. More...
 
double Jeffery_Solution::angle (const double &t)
 Angular position as a function of time t. More...
 
double Jeffery_Solution::velocity (const double &t)
 Angular velocity as function of time t. More...
 
double Jeffery_Solution::acceleration (const double &t)
 Angular acceleration as a function of time t (should always be zero) More...
 
int main (int argc, char **argv)
 Driver code for immersed ellipse problem. More...
 

Variables

double Problem_Parameter::Re =1.0
 Reynolds number. More...
 
double Problem_Parameter::St = 1.0
 Strouhal number. More...
 
double Problem_Parameter::Density_ratio = 1.0
 Density ratio (Solid density / Fluid density) More...
 
double Problem_Parameter::A = 0.25
 Initial axis of the elliptical solid in x-direction. More...
 
double Problem_Parameter::B = 0.5
 
double Problem_Parameter::Nu =0.3
 Pseudo-solid (mesh) Poisson ratio. More...
 
double Problem_Parameter::Lambda_sq =0.0
 
ConstitutiveLawProblem_Parameter::Constitutive_law_pt
 Constitutive law used to determine the mesh deformation. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for immersed ellipse problem.

1199 {
1200  // Store command line arguments
1201  CommandLineArgs::setup(argc,argv);
1202 
1203  // Define possible command line arguments and parse the ones that
1204  // were actually specified
1205 
1206  // Validation?
1208 
1209  // Parse command line
1211 
1212  // Doc what has actually been specified on the command line
1214 
1215  // Create problem in initial configuration
1218 
1219  //Initially ensure that the nodal positions are consistent with
1220  //their weak imposition
1221  problem.solve_for_consistent_nodal_positions();
1222 
1223  // Initialise timestepper
1224  double dt=0.05;
1225  problem.initialise_dt(dt);
1226 
1227  // Perform impulsive start
1228  problem.assign_initial_values_impulsive();
1229 
1230  // Output initial conditions
1231  problem.doc_solution();
1232 
1233  // Solve problem a few times on given mesh
1234  unsigned nstep=3;
1235  for (unsigned i=0;i<nstep;i++)
1236  {
1237  // Solve the problem
1238  problem.unsteady_newton_solve(dt);
1239  problem.doc_solution();
1240  }
1241 
1242  // Now do a couple of adaptations
1243  unsigned ncycle=200;
1245  {
1246  ncycle=1;
1247  oomph_info << "Only doing one cycle during validation\n";
1248  }
1249 
1250  for (unsigned j=0;j<ncycle;j++)
1251  {
1252  // Adapt the problem
1253  problem.adapt();
1254 
1255  //Solve problem a few times
1256  for (unsigned i=0;i<nstep;i++)
1257  {
1258  // Solve the problem
1259  problem.unsteady_newton_solve(dt);
1260  problem.doc_solution();
1261  }
1262  }
1263 
1264 } //end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Definition: jeffery_orbit.cc:194
Taylor Hood upgraded to become projectable.
Definition: navier_stokes_elements.h:2914
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
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
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

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