acoustic_fsi.cc File Reference
#include "generic.h"
#include "helmholtz.h"
#include "time_harmonic_linear_elasticity.h"
#include "multi_physics.h"
#include "meshes/annular_mesh.h"

Classes

class  CoatedDiskProblem< ELASTICITY_ELEMENT, HELMHOLTZ_ELEMENT >
 Coated disk FSI. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

TimeHarmonicIsotropicElasticityTensor Global_Parameters::E (Nu)
 The elasticity tensor for the solid. More...
 
void Global_Parameters::update_parameter_values ()
 Function to update dependent parameter values. More...
 
void Global_Parameters::solid_boundary_displacement (const Vector< double > &x, Vector< std::complex< double > > &u)
 Displacement field on inner boundary of solid. More...
 
std::complex< doubleGlobal_Parameters::HankelH1 (const double &k, const double &x)
 Interface to Hankel function in maple style. More...
 
std::complex< doubleGlobal_Parameters::axisym_coefficient ()
 
void Global_Parameters::exact_axisym_potential (const Vector< double > &x, Vector< double > &soln)
 Exact solution for Helmholtz potential for axisymmetric solution. More...
 
double Global_Parameters::exact_axisym_radiated_power ()
 Exact radiated power for axisymmetric solution. More...
 
int main (int argc, char **argv)
 Driver for acoustic fsi problem. More...
 

Variables

double Global_Parameters::K_squared =10.0
 Square of wavenumber for the Helmholtz equation. More...
 
double Global_Parameters::Outer_radius =4.0
 Radius of outer boundary of Helmholtz domain. More...
 
double Global_Parameters::Q =0.0
 FSI parameter. More...
 
double Global_Parameters::H_coating =0.3
 Non-dim thickness of elastic coating. More...
 
double Global_Parameters::Density_ratio =0.0
 Density ratio: solid to fluid. More...
 
unsigned Global_Parameters::N =0
 
string Global_Parameters::Directory ="RESLT"
 Output directory. More...
 
unsigned Global_Parameters::El_multiplier =1
 Multiplier for number of elements. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver for acoustic fsi problem.

846 {
847 
848  // Store command line arguments
849  CommandLineArgs::setup(argc,argv);
850 
851  // Define possible command line arguments and parse the ones that
852  // were actually specified
853 
854  // Output directory
857 
858  // Azimuthal wavenumber of forcing
860 
861  // Minimum refinement level
864 
865  // Outer radius of Helmholtz domain
868 
869  // Number of steps in parameter study
870  unsigned nstep=2;
872 
873  // Increment in FSI parameter in parameter study
874  double q_increment=5.0;
875  CommandLineArgs::specify_command_line_flag("--q_increment",&q_increment);
876 
877  // Max. number of adaptations
878  unsigned max_adapt=3;
879  CommandLineArgs::specify_command_line_flag("--max_adapt",&max_adapt);
880 
881  // Parse command line
883 
884  // Doc what has actually been specified on the command line
886 
887  //Set up the problem
890 
891 
892  // Initial values for parameter values
895 
896  //Parameter incrementation
897  for(unsigned i=0;i<nstep;i++)
898  {
899  // Solve the problem with Newton's method, allowing
900  // up to max_adapt mesh adaptations after every solve.
901  problem.newton_solve(max_adapt);
902 
903  // Doc solution
904  problem.doc_solution();
905 
906  // Increment FSI parameter
907  Global_Parameters::Q+=q_increment;
909  }
910 
911 } //end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Coated disk FSI.
Definition: acoustic_fsi.cc:236
Definition: refineable_helmholtz_elements.h:196
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
string Directory
Output directory.
Definition: acoustic_fsi.cc:101
unsigned El_multiplier
Multiplier for number of elements.
Definition: acoustic_fsi.cc:104
double Q
FSI parameter.
Definition: acoustic_fsi.cc:58
double Outer_radius
Radius of outer boundary of Helmholtz domain.
Definition: acoustic_fsi.cc:55
void update_parameter_values()
Function to update dependent parameter values.
Definition: acoustic_fsi.cc:76
unsigned N
Definition: acoustic_fsi.cc:83
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
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Parameters::Directory, oomph::CommandLineArgs::doc_specified_flags(), Global_Parameters::El_multiplier, i, Global_Parameters::N, Global_Parameters::Outer_radius, oomph::CommandLineArgs::parse_and_assign(), problem, Global_Parameters::Q, Flag_definition::setup(), oomph::CommandLineArgs::specify_command_line_flag(), and Global_Parameters::update_parameter_values().