fourier_decomposed_acoustic_fsi.cc File Reference
#include <complex>
#include <cmath>
#include "generic.h"
#include "fourier_decomposed_helmholtz.h"
#include "time_harmonic_fourier_decomposed_linear_elasticity.h"
#include "multi_physics.h"
#include "meshes/annular_mesh.h"
#include "oomph_crbond_bessel.h"

Classes

class  CoatedSphereProblem< ELASTICITY_ELEMENT, HELMHOLTZ_ELEMENT >
 Coated sphere FSI. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

std::complex< doubleGlobal_Parameters::Nu (std::complex< double >(0.3, 0.0))
 Poisson's ratio Nu. More...
 
std::complex< doubleGlobal_Parameters::Omega_sq (std::complex< double >(100.0, 0.0))
 Non-dim square of frequency for solid – dependent variable! 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...
 
int main (int argc, char **argv)
 Driver for coated sphere loaded by lineared fluid loading. More...
 

Variables

int Global_Parameters::Fourier_wavenumber =0
 Define azimuthal Fourier wavenumber. More...
 
unsigned Global_Parameters::M =4
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver for coated sphere loaded by lineared fluid loading.

688 {
689 
690  // Store command line arguments
691  CommandLineArgs::setup(argc,argv);
692 
693  // Define possible command line arguments and parse the ones that
694  // were actually specified
695 
696  // Output directory
699 
700  // Parameter for the Helmholtz equation
703 
704  // Initial value of Q
707 
708  // Number of steps in parameter study
709  unsigned nstep=2;
711 
712  // Increment in FSI parameter in parameter study
713  double q_increment=5.0;
714  CommandLineArgs::specify_command_line_flag("--q_increment",&q_increment);
715 
716 
717  // Wavenumber "zenith"-variation of imposed displacement of coating
718  // on inner boundary
721 
722  // Multiplier for number of elements
725 
726  // Parse command line
728 
729  // Doc what has actually been specified on the command line
731 
732  // Update dependent parameters values
734 
735  // Set up doc info
736  DocInfo doc_info;
737 
738  // Set output directory
740 
741  // Set up the problem
744 
745  //Parameter incrementation
746  for(unsigned i=0;i<nstep;i++)
747  {
748  // Solve the problem with Newton's method
749  problem.newton_solve();
750 
751  // Doc solution
752  problem.doc_solution(doc_info);
753 
754  // Increment FSI parameter
755  Global_Parameters::Q+=q_increment;
757  }
758 
759 } //end_of_main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Coated sphere FSI.
Definition: fourier_decomposed_acoustic_fsi.cc:127
Definition: oomph_utilities.h:499
void set_directory(const std::string &directory)
Definition: oomph_utilities.cc:298
Definition: fourier_decomposed_helmholtz_elements.h:431
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 K_squared
Square of wavenumber for the Helmholtz equation.
Definition: acoustic_fsi.cc:52
unsigned M
Definition: fourier_decomposed_acoustic_fsi.cc:95
void update_parameter_values()
Function to update dependent parameter values.
Definition: acoustic_fsi.cc:76
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::K_squared, Global_Parameters::M, oomph::CommandLineArgs::parse_and_assign(), problem, Global_Parameters::Q, oomph::DocInfo::set_directory(), oomph::CommandLineArgs::setup(), oomph::CommandLineArgs::specify_command_line_flag(), and Global_Parameters::update_parameter_values().