unstructured_acoustic_fsi.cc File Reference

Classes

class  MyStraightLine
 Straight 1D line in 2D space. More...
 
class  CoatedDiskProblem< ELASTICITY_ELEMENT, HELMHOLTZ_ELEMENT >
 Coated disk FSI. More...
 

Namespaces

 Global_Parameters
 Namespace for global parameters.
 

Functions

Vector< doubleGlobal_Parameters::Omega_sq (2, 0.0)
 Square of non-dim frequency for the two regions – dependent variable! More...
 
Vector< doubleGlobal_Parameters::Density_ratio (2, 0.1)
 Density ratio for the two regions: solid to fluid. More...
 
void Global_Parameters::update_parameter_values ()
 Function to update dependent parameter values. More...
 
void Global_Parameters::pressure_load (const Vector< double > &x, const Vector< double > &n, Vector< std::complex< double > > &traction)
 Pressure load (real and imag part) More...
 
int main (int argc, char **argv)
 Driver for acoustic fsi problem. More...
 

Variables

unsigned Global_Parameters::ABC_order =3
 Order of absorbing/appproximate boundary condition. More...
 
Vector< TimeHarmonicIsotropicElasticityTensor * > Global_Parameters::E_pt
 The elasticity tensors for the two regions. More...
 
double Global_Parameters::P = 0.1
 Uniform pressure. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)

Driver for acoustic fsi problem.

1257 {
1258 
1259  // Store command line arguments
1260  CommandLineArgs::setup(argc,argv);
1261 
1262  // Define possible command line arguments and parse the ones that
1263  // were actually specified
1264 
1265  // Output directory
1268 
1269  // Peakiness parameter for loading
1272 
1273  // Multiplier for number of elements in solid mesh
1276 
1277  // Outer radius of Helmholtz domain
1280 
1281  // Validaton run?
1283 
1284  // Max. number of adaptations
1285  unsigned max_adapt=3;
1286  CommandLineArgs::specify_command_line_flag("--max_adapt",&max_adapt);
1287 
1288  // Parse command line
1290 
1291  // Doc what has actually been specified on the command line
1293 
1294  //Set up the problem
1298 
1299 
1300  // Set values for parameter values
1301  Global_Parameters::Q=5.0;
1305 
1306  //Parameter study
1307  unsigned nstep=3;
1309  {
1310  nstep=1;
1311  max_adapt=2;
1312  }
1313  for(unsigned i=0;i<nstep;i++)
1314  {
1315  // Solve the problem with Newton's method, allowing
1316  // up to max_adapt mesh adaptations after every solve.
1317  problem.newton_solve(max_adapt);
1318 
1319  // Doc solution
1320  problem.doc_solution();
1321 
1322  // Make rib a lot heavier but keep its stiffness
1323  if (i==0)
1324  {
1325  Global_Parameters::E_pt[1]->update_constitutive_parameters(
1326  Global_Parameters::Nu,1.0);
1329  }
1330 
1331  // Make rib very soft and inertia-less
1332  if (i==1)
1333  {
1334  Global_Parameters::E_pt[1]->update_constitutive_parameters(
1335  Global_Parameters::Nu,1.0e-16);
1338  }
1339 
1340 
1341  }
1342 
1343 } //end of main
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Coated disk FSI.
Definition: acoustic_fsi.cc:236
Time-harmonic linear elasticity upgraded to become projectable.
Definition: time_harmonic_linear_elasticity_elements.h:528
Definition: refineable_helmholtz_elements.h:196
Definition: Ttime_harmonic_linear_elasticity_elements.h:66
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
double Nu
Define Poisson's ratio Nu.
Definition: axisym_linear_elasticity/cylinder/cylinder.cc:46
string Directory
Output directory.
Definition: acoustic_fsi.cc:101
unsigned El_multiplier
Multiplier for number of elements.
Definition: acoustic_fsi.cc:104
double Density_ratio
Density ratio: solid to fluid.
Definition: acoustic_fsi.cc:70
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
Vector< TimeHarmonicIsotropicElasticityTensor * > E_pt
The elasticity tensors for the two regions.
Definition: unstructured_acoustic_fsi.cc:135
double Alpha
Peakiness parameter for pressure load.
Definition: adaptive_hopf.cc:60
bool command_line_flag_has_been_set(const std::string &flag)
Definition: oomph_utilities.cc:501
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::Alpha, oomph::CommandLineArgs::command_line_flag_has_been_set(), Global_Parameters::Density_ratio, Global_Parameters::Directory, oomph::CommandLineArgs::doc_specified_flags(), Global_Parameters::E_pt, Global_Parameters::El_multiplier, i, Global_Parameters::Nu, 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().