LifeV
Analytical_Solution Class Reference

Analytical_Solution - A particular case of Cos_min_Sin. More...

#include <ud_functions.hpp>

+ Inheritance diagram for Analytical_Solution:
+ Collaboration diagram for Analytical_Solution:

Public Member Functions

 Analytical_Solution (Real const &sol_amplitude_Re, Real const &sol_amplitude_Im, Real const &kappa_Re, Real const &kappa_Im, Real const &omega)
 The constructor. More...
 
virtual ~Analytical_Solution ()
 
Real operator() (const Real &time)
 Compute the wave at the specified time. More...
 
void update_x (const Real &_x)
 Compute the wave at the specified time. More...
 
- Public Member Functions inherited from Cos_min_Sin
 Cos_min_Sin (const Real coeff_exp_t_cos=0, const Real mean_cos=0, const Real amplitude_cos=10, const Real frequency_cos=8.*atan(1.), const Real phase_cos=0., const Real coeff_exp_t_sin=0, const Real mean_sin=0, const Real amplitude_sin=10, const Real frequency_sin=8.*atan(1.), const Real phase_sin=0.)
 The constructor. More...
 
virtual ~Cos_min_Sin ()
 
Real operator() (const Real &time)
 Compute the wave at the specified time. More...
 
Realcoeff_exp_t_cos ()
 
Realmean_cos ()
 
Realamplitude_cos ()
 
Realfrequency_cos ()
 
Realphase_cos ()
 
Realcoeff_exp_t_sin ()
 
Realmean_sin ()
 
Realamplitude_sin ()
 
Realfrequency_sin ()
 
Realphase_sin ()
 

Private Attributes

Real M_sol_amplitude_Re
 
Real M_sol_amplitude_Im
 
Real M_kappa_Re
 
Real M_kappa_Im
 

Detailed Description

Analytical_Solution - A particular case of Cos_min_Sin.

Author
Lucia Mirabella

This analytical solution is in the form

U = ( Re(U) + i Im(U) ) * exp( Im(k) x ) * exp[ i ( t - Re(k) x ) ] .

Its real part is Re(U) = [ Re(U) * exp( Im(k) x ) ] * cos( t - Re(k) x ) +

  • [ Im(U) * exp( Im(k) x ) ] * sin( t - Re(k) x ) +

Definition at line 265 of file multiscale/testsuite/onedmodel/ud_functions.hpp.

Constructor & Destructor Documentation

◆ Analytical_Solution()

Analytical_Solution ( Real const &  sol_amplitude_Re,
Real const &  sol_amplitude_Im,
Real const &  kappa_Re,
Real const &  kappa_Im,
Real const &  omega 
)
inlineexplicit

The constructor.

Parameters
[in]sol_amplitude_Rethe real part of the wave amplitude
[in]sol_amplitude_Imthe imaginary part of the wave amplitude
[in]kappa_Rethe real part of the wave number $ k $
[in]kappa_Imthe imaginary part of the wave number $ k $
[in]omegathe wave time frequency $ \omega $ (supposed to be real)

Definition at line 278 of file multiscale/testsuite/onedmodel/ud_functions.hpp.

◆ ~Analytical_Solution()

virtual ~Analytical_Solution ( )
inlinevirtual

Member Function Documentation

◆ operator()()

Real operator() ( const Real time)
inline

Compute the wave at the specified time.

Parameters
[in]timethe time
Returns
$ B_c + A_c cos( \frac{2 \pi t}{T_c} + \phi_c ) - ( B_s + A_s sin( \frac{2 \pi t}{T_s} + \phi_s ) ) $

Definition at line 298 of file multiscale/testsuite/onedmodel/ud_functions.hpp.

◆ update_x()

void update_x ( const Real _x)
inline

Compute the wave at the specified time.

Parameters
[in]timethe time
Returns
$ B_c + A_c cos( \frac{2 \pi t}{T_c} + \phi_c ) - ( B_s + A_s sin( \frac{2 \pi t}{T_s} + \phi_s ) ) $

Definition at line 310 of file multiscale/testsuite/onedmodel/ud_functions.hpp.

Field Documentation

◆ M_sol_amplitude_Re

Real M_sol_amplitude_Re
private

◆ M_sol_amplitude_Im

Real M_sol_amplitude_Im
private

◆ M_kappa_Re

Real M_kappa_Re
private

◆ M_kappa_Im

Real M_kappa_Im
private

The documentation for this class was generated from the following file: