Driver code for Fourier decomposed Helmholtz problem.
763 double bessel_offset=0.5;
765 ofstream bessely_file(
"besselY.dat");
766 ofstream bessely_deriv_file(
"dbesselY.dat");
768 ofstream besselj_file(
"besselJ.dat");
769 ofstream besselj_deriv_file(
"dbesselJ.dat");
779 for (
unsigned i=0;
i<nplot;
i++)
781 double x=x_min+(x_max-x_min)*
double(
i)/
double(nplot-1);
782 double order_max_in=
double(
n)+bessel_offset;
783 double order_max_out=0;
798 bessely_file <<
x <<
" ";
799 for (
unsigned j=0;
j<=
n;
j++)
801 bessely_file << yv[
j] <<
" ";
803 bessely_file << std::endl;
805 besselj_file <<
x <<
" ";
806 for (
unsigned j=0;
j<=
n;
j++)
808 besselj_file << jv[
j] <<
" ";
810 besselj_file << std::endl;
812 bessely_deriv_file <<
x <<
" ";
813 for (
unsigned j=0;
j<=
n;
j++)
815 bessely_deriv_file << dyv[
j] <<
" ";
817 bessely_deriv_file << std::endl;
819 besselj_deriv_file <<
x <<
" ";
820 for (
unsigned j=0;
j<=
n;
j++)
822 besselj_deriv_file << djv[
j] <<
" ";
824 besselj_deriv_file << std::endl;
827 bessely_file.close();
828 besselj_file.close();
829 bessely_deriv_file.close();
830 besselj_deriv_file.close();
840 ofstream some_file(
"legendre3.dat");
842 for (
unsigned i=0;
i<nplot;
i++)
846 some_file <<
x <<
" ";
847 for (
unsigned j=
n;
j<=5;
j++)
851 some_file << std::endl;
858 ofstream some_file(
"legendre.dat");
860 for (
unsigned i=0;
i<nplot;
i++)
864 some_file <<
x <<
" ";
865 for (
unsigned j=0;
j<=3;
j++)
869 some_file << std::endl;
898 problem.doc_solution(doc_info);
AnnoyingScalar cos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:136
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Problem class.
Definition: sphere_scattering.cc:380
Definition: oomph_utilities.h:499
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
double Pi
Definition: two_d_biharmonic.cc:235
int bessjyv(double v, double x, double &vm, double *jv, double *yv, double *djv, double *dyv)
Definition: crbond_bessel.cc:1050
void setup(Time *time_pt)
Create all GeomObjects needed to define the cylinder and the flag.
Definition: turek_flag_non_fsi.cc:277
unsigned El_multiplier
Multiplier for number of elements.
Definition: sphere_scattering.cc:363
int N_fourier
Fourier wave number.
Definition: sphere_scattering.cc:228
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
double plgndr2(const unsigned &l, const unsigned &m, const double &x)
Legendre polynomials depending on two parameters.
Definition: fourier_decomposed_helmholtz_elements.cc:97
list x
Definition: plotDoE.py:28
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2