unstructured_adaptive_ALE.cc File Reference
#include <fenv.h>
#include "generic.h"
#include "navier_stokes.h"
#include "solid.h"
#include "constitutive.h"
#include "rigid_body.h"
#include "meshes/triangle_mesh.h"

Classes

class  oomph::MyTaylorHoodElement< DIM >
 Overload TaylorHood element to modify output. More...
 
class  oomph::FaceGeometry< MyTaylorHoodElement >
 
class  UnstructuredFluidProblem< ELEMENT >
 Unstructured Navier-Stokes ALE Problem. More...
 

Namespaces

 oomph
 DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
 
 oomph::Problem_Parameter
 Namespace for Problem Parameter.
 

Functions

int main (int argc, char **argv)
 Driver code for moving block problem. More...
 

Variables

double oomph::Problem_Parameter::Block_x_velocity =0.5
 Block velocity. More...
 
double oomph::Problem_Parameter::Block_y_velocity =0.3
 Block velocity. More...
 
double oomph::Problem_Parameter::Block_rotation_velocity =1.0
 Block velocity. More...
 
Vector< Data * > oomph::Problem_Parameter::Centre_displacement_data_pt
 
DocInfo oomph::Problem_Parameter::Doc_info
 Doc info. More...
 
double oomph::Problem_Parameter::Lambda_sq =0.0
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver code for moving block problem.

1390 {
1391  // feenableexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW);
1392 
1393  // Store command line arguments
1394  CommandLineArgs::setup(argc,argv);
1395 
1396  // Define possible command line arguments and parse the ones that
1397  // were actually specified
1398 
1399  // Validation?
1401 
1402  // Parse command line
1404 
1405  // Doc what has actually been specified on the command line
1407 
1408  // Create generalised Hookean constitutive equations
1411 
1412  // Open trace file
1413  Problem_Parameter::Trace_file.open("RESLT/trace.dat");
1414 
1415  // Open norm file
1416  Problem_Parameter::Norm_file.open("RESLT/norm.dat");
1417 
1418 
1419  // Create problem in initial configuration
1421  problem;
1422 
1423  // Initialise timestepper
1424  double dt=0.025;
1425  problem.initialise_dt(dt);
1426 
1427  // Perform impulsive start
1428  problem.assign_initial_values_impulsive();
1429 
1430  // Output initial conditions
1431  problem.doc_solution();
1432 
1433  // Solve problem a few times on given mesh
1434  unsigned nstep=3;
1435  for (unsigned i=0;i<nstep;i++)
1436  {
1437  // Solve the problem
1438  problem.unsteady_newton_solve(dt);
1439  problem.doc_solution();
1440  }
1441 
1442  // Now do a couple of adaptations
1443  unsigned ncycle=100;
1445  {
1446  ncycle=1;
1447  oomph_info << "Only doing one cycle during validation\n";
1448  }
1449  for (unsigned j=0;j<ncycle;j++)
1450  {
1451  // Adapt
1452  problem.adapt();
1453 
1454  //Solve problem a few times
1455  for (unsigned i=0;i<nstep;i++)
1456  {
1457  // Solve the problem
1458  problem.unsteady_newton_solve(dt);
1459 
1460  // Build the label for doc
1461  std::stringstream label;
1462  label << "Cycle " <<j << " Step "<< i;
1463  problem.doc_solution(label.str());
1464  }
1465  }
1466 
1467 
1468 } //End of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Unstructured Navier-Stokes ALE Problem.
Definition: unstructured_adaptive_ALE.cc:390
Definition: constitutive_laws.h:699
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
ofstream Norm_file
Definition: refineable_two_layer_interface.cc:341
ofstream Trace_file
Trace file.
Definition: refineable_two_layer_interface.cc:335
ConstitutiveLaw * Constitutive_law_pt
Constitutive law used to determine the mesh deformation.
Definition: jeffery_orbit.cc:82
double Nu
Pseudo-solid (mesh) Poisson ratio.
Definition: jeffery_orbit.cc:75
label
Definition: UniformPSDSelfTest.py:24
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(), Problem_Parameter::Constitutive_law_pt, oomph::CommandLineArgs::doc_specified_flags(), i, j, UniformPSDSelfTest::label, Problem_Parameter::Norm_file, Problem_Parameter::Nu, oomph::oomph_info, oomph::CommandLineArgs::parse_and_assign(), problem, Flag_definition::setup(), oomph::CommandLineArgs::specify_command_line_flag(), and Problem_Parameter::Trace_file.