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.
811 unsigned coarsening_factor=1;
818 unsigned nup=20/coarsening_factor;
819 unsigned ncollapsible=40/coarsening_factor;
820 unsigned ndown=40/coarsening_factor;
821 unsigned ny=16/coarsening_factor;
825 double lcollapsible=10.0;
830 double amplitude=1.0e-2;
856 lup, lcollapsible, ldown,
ly,
864 lup, lcollapsible, ldown,
ly,
873 unsigned nsteps_per_period=40;
879 unsigned nstep=nsteps_per_period*nperiod;
886 double dt=period/
double(nsteps_per_period);
892 problem.time_pt()->time()=t_min;
894 problem.set_initial_condition();
897 problem.doc_solution(doc_info, trace_file);
905 problem.bulk_mesh_pt()->max_permitted_error()=1.0e-3;
906 problem.bulk_mesh_pt()->min_permitted_error()=1.0e-5;
912 problem.bulk_mesh_pt()->max_permitted_error()=1.0e-4;
913 problem.bulk_mesh_pt()->min_permitted_error()=1.0e-6;
921 unsigned max_adapt=10;
926 for (
unsigned istep=0;istep<nstep;istep++)
932 problem.unsteady_newton_solve(dt, max_adapt, first);
938 problem.unsteady_newton_solve(dt);
943 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
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