Driver code for an unsteady adaptive collapsible channel problem with prescribed wall motion. Presence of command line arguments indicates validation run with coarse resolution and small number of timesteps.
1000 unsigned coarsening_factor=1;
1003 coarsening_factor=4;
1007 unsigned nup=20/coarsening_factor;
1008 unsigned ncollapsible=40/coarsening_factor;
1009 unsigned ndown=40/coarsening_factor;
1010 unsigned ny=16/coarsening_factor;
1014 double lcollapsible=10.0;
1019 double amplitude=1.0e-2;
1034 ofstream trace_file;
1046 lup, lcollapsible, ldown,
ly,
1051 unsigned nsteps_per_period=40;
1057 unsigned nstep=nsteps_per_period*nperiod;
1064 double dt=period/
double(nsteps_per_period);
1070 problem.time_pt()->time()=t_min;
1072 problem.set_initial_condition();
1075 problem.doc_solution(doc_info, trace_file);
1082 problem.bulk_mesh_pt()->max_permitted_error()=1.0e-3;
1083 problem.bulk_mesh_pt()->min_permitted_error()=1.0e-5;
1089 problem.bulk_mesh_pt()->max_permitted_error()=1.0e-4;
1090 problem.bulk_mesh_pt()->min_permitted_error()=1.0e-6;
1099 unsigned max_adapt=10;
1102 for (
unsigned istep=0;istep<nstep;istep++)
1105 problem.unsteady_newton_solve(dt, max_adapt, first);
1108 problem.doc_solution(doc_info, trace_file);
Problem class.
Definition: collapsible_channel.cc:236
Definition: oomph_utilities.h:499
std::string directory() const
Output directory.
Definition: oomph_utilities.h:524
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
unsigned & number()
Number used (e.g.) for labeling output files.
Definition: oomph_utilities.h:554
Refineable version of the PseudoSolidNodeUpdateELement.
Definition: pseudosolid_node_update_elements.h:585
Class for refineable QPVDElement elements.
Definition: refineable_solid_elements.h:181
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double P_up
Default pressure on the left boundary.
Definition: fsi_collapsible_channel.cc:183
string filename
Definition: MergeRestartFiles.py:39
const double ly
Definition: ConstraintElementsUnitTest.cpp:34
const unsigned ny
Definition: ConstraintElementsUnitTest.cpp:31
int Argc
Number of arguments + 1.
Definition: oomph_utilities.cc:407
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213