two_d_linear_wave_flux.cc File Reference
#include "generic.h"
#include "linear_wave.h"
#include "meshes/rectangular_quadmesh.h"

Classes

class  LinearWaveProblem< ELEMENT, TIMESTEPPER >
 LinearWave problem in rectanglular domain. More...
 

Namespaces

 TanhSolnForLinearWave
 

Functions

double TanhSolnForLinearWave::exact_u (const double &time, const Vector< double > &x)
 Exact solution. More...
 
double TanhSolnForLinearWave::exact_dudt (const double &time, const Vector< double > &x)
 1st time-deriv of exact solution More...
 
double TanhSolnForLinearWave::exact_d2udt2 (const double &time, const Vector< double > &x)
 2nd time-deriv of exact solution More...
 
void TanhSolnForLinearWave::get_exact_u (const double &time, const Vector< double > &x, Vector< double > &u)
 Exact solution as a vector. More...
 
void TanhSolnForLinearWave::get_source (const double &time, const Vector< double > &x, double &source)
 Source function to make it an exact solution. More...
 
void TanhSolnForLinearWave::get_exact_gradient (const double &time, const Vector< double > &x, Vector< double > &dudx)
 Gradient of exact solution. More...
 
void TanhSolnForLinearWave::prescribed_flux_on_fixed_y_boundary (const double &time, const Vector< double > &x, double &flux)
 Prescribed flux on a fixed y max boundary. More...
 
int main (int argc, char *argv[])
 Demonstrate how to solve LinearWave problem. More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

Demonstrate how to solve LinearWave problem.

///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

604 {
605 
606  // Store command line arguments
607  CommandLineArgs::setup(argc,argv);
608 
609  // Pointer to source function
612 
613  // Number of elements in x direction
614  unsigned n_x=10;
615 
616  // Number of elements in y direction
617  unsigned n_y=20;
618 
619  // Build problem
621  problem(n_x,n_y,source_fct_pt);
622 
623  // Run it
624  problem.unsteady_run();
625 
626 
627 }; // end of main
LinearWave problem in rectanglular domain.
Definition: two_d_linear_wave.cc:109
Definition: linear_wave_elements.h:53
Definition: timesteppers.h:912
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
void get_source(const double &time, const Vector< double > &x, double &source)
Source function to make it an exact solution.
Definition: two_d_linear_wave.cc:91
GeneralisedAxisymAdvectionDiffusionSourceFctPt & source_fct_pt()
Access function: Pointer to source function.
Definition: gen_axisym_advection_diffusion_elements.h:229
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References TanhSolnForLinearWave::get_source(), problem, Flag_definition::setup(), and oomph::source_fct_pt().