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.
779 unsigned coarsening_factor=1;
786 unsigned nup=20/coarsening_factor;
787 unsigned ncollapsible=40/coarsening_factor;
788 unsigned ndown=40/coarsening_factor;
789 unsigned ny=16/coarsening_factor;
793 double lcollapsible=10.0;
798 double amplitude=1.0e-2;
821 lup, lcollapsible, ldown,
ly,
826 unsigned nsteps_per_period=40;
832 unsigned nstep=nsteps_per_period*nperiod;
839 double dt=period/
double(nsteps_per_period);
845 problem.time_pt()->time()=t_min;
847 problem.set_initial_condition();
850 problem.doc_solution(doc_info, trace_file);
857 problem.bulk_mesh_pt()->max_permitted_error()=1.0e-3;
858 problem.bulk_mesh_pt()->min_permitted_error()=1.0e-5;
864 problem.bulk_mesh_pt()->max_permitted_error()=1.0e-4;
865 problem.bulk_mesh_pt()->min_permitted_error()=1.0e-6;
874 unsigned max_adapt=10;
877 for (
unsigned istep=0;istep<nstep;istep++)
880 problem.unsteady_newton_solve(dt, max_adapt, first);
884 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