Public Types | Public Member Functions | Private Attributes | List of all members
oomph::VorticitySmootherElement< ELEMENT > Class Template Reference

Overloaded element that allows projection of vorticity. More...

#include <vorticity_smoother.h>

+ Inheritance diagram for oomph::VorticitySmootherElement< ELEMENT >:

Public Types

typedef void(* ExactVorticityFctPt) (const Vector< double > &x, Vector< Vector< double >> &vort_and_derivs)
 Typedef for pointer to function that specifies the exact vorticity and derivatives (for validation) More...
 

Public Member Functions

 VorticitySmootherElement ()
 Constructor. More...
 
Vector< Vector< double > > create_container_for_vorticity_and_derivatives () const
 Helper function to create a container for the vorticity and its partial derivatives. If the user wishes to output everything then this also creates space for the velocity derivatives too. This function has been written to allow for generalisation of the storage without (hopefully!) affecting too much. More...
 
std::pair< unsigned, unsigned > vorticity_dof_to_container_id (const unsigned &i) const
 Helper function that, given the local dof number of the i-th vorticity or velocity derivative, returns the index in the container that stores the corresponding value. Note 1: this function goes hand-in-hand with create_container_for_vorticity_and_derivatives() Note 2: i=0: vorticity itself; i>0: vorticity derivatives. More...
 
std::pair< unsigned, unsigned > recovered_dof_to_container_id (const unsigned &i) const
 Helper function that, given the local dof number of the i-th vorticity or velocity derivative, returns the index in the container that stores the corresponding value. Note 1: this function goes hand-in-hand with create_container_for_vorticity_and_derivatives() Note 2: The input to this function is the i associated with the STORED nodal dof value. For example, if we're only recovering the velocity derivatives then i=0 is associated with du/dx. More...
 
unsigned stored_dof_to_recoverable_dof (const unsigned &i) const
 Given the STORED dof number, this function returns the global recovered number. For example, if we only want to recover the velocity derivatives then the stored dof number of du/dy is 1 (as 0 is associated with du/dx). The global recovered number is 11 (as there are currently 10 vorticity derivatives that can be recovered and du/dy is the second velocity derivative we can recover). More...
 
unsigned get_maximum_order_of_recoverable_vorticity_derivative () const
 The maximum order of vorticity derivative that can be recovered. This is set in the constructor and should NOT be changed during the running of the code. As such, a set...() function is not provided. DRAIG: Leave get_ prefix? More...
 
unsigned get_maximum_order_of_recoverable_velocity_derivative () const
 The maximum order of velocity derivative that can be recovered. This is set in the constructor and should NOT be changed during the running of the code. As such, a set...() function is not provided. DRAIG: Leave get_ prefix? More...
 
int get_maximum_order_of_vorticity_derivative () const
 The maximum order of derivatives calculated in the vorticity recovery. Note, this value can only be set through the namespace VorticityRecoveryHelpers. DRAIG: Leave get_ prefix? More...
 
int get_maximum_order_of_velocity_derivative () const
 The maximum order of derivatives calculated in the velocity recovery. Note, this value can only be set through the namespace VorticityRecoveryHelpers. DRAIG: Leave get_ prefix? More...
 
unsigned nvorticity_derivatives_to_recover () const
 The number of terms calculated in the vorticity recovery. Also includes the zeroth derivative, i.e. the vorticity itself. More...
 
unsigned nvelocity_derivatives_to_recover () const
 The number of derivatives calculated in the velocity recovery. This does NOT include the zeroth derivatives as they are not "recovered". More...
 
unsigned npartial_derivative (const unsigned &n) const
 Call the function written in VorticityRecoveryHelpers. More...
 
ExactVorticityFctPtexact_vorticity_fct_pt ()
 Access function: Pointer to function that specifies exact vorticity and derivatives (for validation). More...
 
ExactVorticityFctPt exact_vorticity_fct_pt () const
 Access function: Pointer to function that specifies exact vorticity and derivatives (for validation) – const version. More...
 
unsigned smoothed_vorticity_index () const
 Index of smoothed vorticity – followed by derivatives. More...
 
unsigned required_nvalue (const unsigned &n) const
 Number of values required at local node n. In order to simplify matters, we allocate storage for pressure variables at all the nodes and then pin those that are not used. More...
 
unsigned ncont_interpolated_values () const
 Number of continuously interpolated values: More...
 
void get_interpolated_values (const Vector< double > &s, Vector< double > &values)
 Get the function value u in Vector. Note: Given the generality of the interface (this function is usually called from black-box documentation or interpolation routines), the values Vector sets its own size in here. More...
 
void get_interpolated_values (const unsigned &t, const Vector< double > &s, Vector< double > &values)
 Get the function value u in Vector. Note: Given the generality of the interface (this function is usually called from black-box documentation or interpolation routines), the values Vector sets its own size in here. More...
 
void pin_smoothed_vorticity ()
 Pin all smoothed vorticity quantities. More...
 
void output_analytical_veloc_and_vorticity (std::ostream &outfile, const unsigned &nplot)
 Output exact velocity, vorticity, derivatives and indicator based on functions specified by two function pointers. More...
 
void output_smoothed_vorticity (std::ostream &outfile, const unsigned &nplot)
 Output the velocity, smoothed vorticity and derivatives. More...
 
unsigned nscalar_paraview () const
 Number of scalars/fields output by this element. Re-implements broken virtual function in base class. More...
 
void scalar_value_paraview (std::ofstream &file_out, const unsigned &i, const unsigned &nplot) const
 Write values of the i-th scalar field at the plot points. Needs to be implemented for each new specific element type. More...
 
std::string scalar_name_paraview (const unsigned &i) const
 Name of the i-th scalar field. Default implementation returns V1 for the first one, V2 for the second etc. Can (should!) be overloaded with more meaningful names in specific elements. More...
 
void output (std::ostream &outfile, const unsigned &nplot)
 Overloaded output function: Output velocity, pressure and the smoothed vorticity. More...
 
void get_raw_velocity_deriv (const Vector< double > &s, Vector< double > &dveloc_dx) const
 Get raw derivative of velocity. More...
 
void get_raw_velocity_deriv (const Vector< double > &s, double &dveloc_dx, const unsigned &index) const
 Get raw derivative of velocity. More...
 
void get_raw_vorticity_deriv (const Vector< double > &s, Vector< double > &dvorticity_dx) const
 Get raw derivative of smoothed vorticity. More...
 
void get_raw_vorticity_deriv (const Vector< double > &s, double &dvorticity_dx, const unsigned &index) const
 Get raw derivative of smoothed vorticity. More...
 
void get_raw_vorticity_second_deriv (const Vector< double > &s, Vector< double > &dvorticity_dxdy) const
 Get raw derivative of smoothed derivative vorticity. More...
 
void get_raw_vorticity_second_deriv (const Vector< double > &s, double &dvorticity_dxdy, const unsigned &index) const
 Get raw derivative of smoothed derivative vorticity [0]: d^2/dx^2, [1]: d^2/dxdy, [2]: d^2/dy^2. More...
 
void get_raw_vorticity_third_deriv (const Vector< double > &s, Vector< double > &dvorticity_dxdxdy) const
 Get raw derivative of smoothed derivative vorticity [0]: d^3/dx^3, [1]: d^3/dx^2dy, [2]: d^3/dxdy^2, [3]: d^3/dy^3. More...
 
void get_raw_vorticity_third_deriv (const Vector< double > &s, double &dvorticity_dxdxdy, const unsigned &index) const
 Get raw derivative of smoothed derivative vorticity [0]: d^3/dx^3, [1]: d^3/dx^2dy, [2]: d^3/dxdy^2, [3]: d^3/dy^3,. More...
 
double vorticity_error_squared (const unsigned &i)
 Compute the element's contribution to the (squared) L2 norm of the difference between exact and smoothed vorticity. The input i corresponds to the i-th dof stored at each node (excluding the velocities and pressure). More...
 
void vorticity_and_its_derivs (const Vector< double > &s, Vector< Vector< double >> &vort_and_derivs) const
 Compute smoothed vorticity and its derivatives. More...
 

Private Attributes

unsigned N_dim
 Number of dimensions in the element. More...
 
unsigned Smoothed_vorticity_index
 Index of smoothed vorticity – followed by derivatives; in 2D this has value 3. More...
 
unsigned Maximum_order_of_recoverable_vorticity_derivatives
 The current maximum order of vorticity derivatives that can be recovered. Currently, we can recover up to the third derivative: omega,d/dx,d/dy, d^2/dx^2,d^2/dxdy,d^2/dy^2, d^3/dx^3,d^3/dx^2dy,d^3/dxdy^2,d^3/dy^3. More...
 
unsigned Maximum_order_of_recoverable_velocity_derivatives
 The current maximum order of velocity derivatives that can be recovered. Currently, we can recover the first derivatives: du/dx,du/dy,dv/dx,dv/dy. More...
 
unsigned Number_of_values_per_field
 Number of values per field; how many of the following do we want: u,v,p,omega,d/dx,d/dy, d^2/dx^2,d^2/dxdy,d^2/dy^2, d^3/dx^3,d^3/dx^2dy,d^3/dxdy^2,d^3/dy^3, du/dx,du/dy,dv/dx,dv/dy. More...
 
int Maximum_order_of_vorticity_derivative
 Maximum number of derivatives to retain in the vorticity recovery. Note, the value -1 means we ONLY output u,v[,w],p. More...
 
int Maximum_order_of_velocity_derivative
 Maximum number of derivatives to retain in the velocity recovery. Note, the value 0 means we don't calculate the derivatives of the velocity. More...
 
ExactVorticityFctPt Exact_vorticity_fct_pt
 Pointer to function that specifies exact vorticity and derivs (for validation). More...
 

Detailed Description

template<class ELEMENT>
class oomph::VorticitySmootherElement< ELEMENT >

Overloaded element that allows projection of vorticity.

Definition at line 223 of file vorticity_smoother.h.

Member Typedef Documentation

◆ ExactVorticityFctPt

template<class ELEMENT >
typedef void(* oomph::VorticitySmootherElement< ELEMENT >::ExactVorticityFctPt) (const Vector< double > &x, Vector< Vector< double >> &vort_and_derivs)

Typedef for pointer to function that specifies the exact vorticity and derivatives (for validation)

Definition at line 265 of file vorticity_smoother.h.

Constructor & Destructor Documentation

◆ VorticitySmootherElement()

template<class ELEMENT >
oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement ( )
inline

Member Function Documentation

◆ create_container_for_vorticity_and_derivatives()

template<class ELEMENT >
Vector<Vector<double> > oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives ( ) const
inline

◆ exact_vorticity_fct_pt() [1/2]

template<class ELEMENT >
ExactVorticityFctPt& oomph::VorticitySmootherElement< ELEMENT >::exact_vorticity_fct_pt ( )
inline

Access function: Pointer to function that specifies exact vorticity and derivatives (for validation).

Definition at line 710 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Exact_vorticity_fct_pt.

◆ exact_vorticity_fct_pt() [2/2]

template<class ELEMENT >
ExactVorticityFctPt oomph::VorticitySmootherElement< ELEMENT >::exact_vorticity_fct_pt ( ) const
inline

Access function: Pointer to function that specifies exact vorticity and derivatives (for validation) – const version.

Definition at line 718 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Exact_vorticity_fct_pt.

◆ get_interpolated_values() [1/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_interpolated_values ( const unsigned &  t,
const Vector< double > &  s,
Vector< double > &  values 
)
inline

Get the function value u in Vector. Note: Given the generality of the interface (this function is usually called from black-box documentation or interpolation routines), the values Vector sets its own size in here.

Definition at line 765 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::N_dim, oomph::VorticitySmootherElement< ELEMENT >::Number_of_values_per_field, s, oomph::OneDimLagrange::shape(), and t.

◆ get_interpolated_values() [2/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_interpolated_values ( const Vector< double > &  s,
Vector< double > &  values 
)
inline

Get the function value u in Vector. Note: Given the generality of the interface (this function is usually called from black-box documentation or interpolation routines), the values Vector sets its own size in here.

Definition at line 751 of file vorticity_smoother.h.

References s, and t.

◆ get_maximum_order_of_recoverable_velocity_derivative()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_recoverable_velocity_derivative ( ) const
inline

The maximum order of velocity derivative that can be recovered. This is set in the constructor and should NOT be changed during the running of the code. As such, a set...() function is not provided. DRAIG: Leave get_ prefix?

Definition at line 635 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_velocity_derivatives.

◆ get_maximum_order_of_recoverable_vorticity_derivative()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_recoverable_vorticity_derivative ( ) const
inline

The maximum order of vorticity derivative that can be recovered. This is set in the constructor and should NOT be changed during the running of the code. As such, a set...() function is not provided. DRAIG: Leave get_ prefix?

Definition at line 625 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_vorticity_derivatives.

◆ get_maximum_order_of_velocity_derivative()

template<class ELEMENT >
int oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_velocity_derivative ( ) const
inline

The maximum order of derivatives calculated in the velocity recovery. Note, this value can only be set through the namespace VorticityRecoveryHelpers. DRAIG: Leave get_ prefix?

Definition at line 655 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_velocity_derivative.

◆ get_maximum_order_of_vorticity_derivative()

template<class ELEMENT >
int oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_vorticity_derivative ( ) const
inline

The maximum order of derivatives calculated in the vorticity recovery. Note, this value can only be set through the namespace VorticityRecoveryHelpers. DRAIG: Leave get_ prefix?

Definition at line 645 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative.

◆ get_raw_velocity_deriv() [1/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_velocity_deriv ( const Vector< double > &  s,
double &  dveloc_dx,
const unsigned &  index 
) const
inline

Get raw derivative of velocity.

Definition at line 1276 of file vorticity_smoother.h.

References oomph::oomph_info, and s.

◆ get_raw_velocity_deriv() [2/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_velocity_deriv ( const Vector< double > &  s,
Vector< double > &  dveloc_dx 
) const
inline

Get raw derivative of velocity.

Definition at line 1242 of file vorticity_smoother.h.

References oomph::Vector< _Tp >::initialise(), and s.

◆ get_raw_vorticity_deriv() [1/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_deriv ( const Vector< double > &  s,
double &  dvorticity_dx,
const unsigned &  index 
) const
inline

Get raw derivative of smoothed vorticity.

Definition at line 1369 of file vorticity_smoother.h.

References oomph::oomph_info, s, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ get_raw_vorticity_deriv() [2/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_deriv ( const Vector< double > &  s,
Vector< double > &  dvorticity_dx 
) const
inline

Get raw derivative of smoothed vorticity.

Definition at line 1337 of file vorticity_smoother.h.

References oomph::Vector< _Tp >::initialise(), s, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ get_raw_vorticity_second_deriv() [1/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_second_deriv ( const Vector< double > &  s,
double &  dvorticity_dxdy,
const unsigned &  index 
) const
inline

Get raw derivative of smoothed derivative vorticity [0]: d^2/dx^2, [1]: d^2/dxdy, [2]: d^2/dy^2.

Definition at line 1454 of file vorticity_smoother.h.

References oomph::oomph_info, s, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ get_raw_vorticity_second_deriv() [2/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_second_deriv ( const Vector< double > &  s,
Vector< double > &  dvorticity_dxdy 
) const
inline

Get raw derivative of smoothed derivative vorticity.

Definition at line 1416 of file vorticity_smoother.h.

References oomph::Vector< _Tp >::initialise(), s, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ get_raw_vorticity_third_deriv() [1/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_third_deriv ( const Vector< double > &  s,
double &  dvorticity_dxdxdy,
const unsigned &  index 
) const
inline

Get raw derivative of smoothed derivative vorticity [0]: d^3/dx^3, [1]: d^3/dx^2dy, [2]: d^3/dxdy^2, [3]: d^3/dy^3,.

Definition at line 1556 of file vorticity_smoother.h.

References oomph::oomph_info, s, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ get_raw_vorticity_third_deriv() [2/2]

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_third_deriv ( const Vector< double > &  s,
Vector< double > &  dvorticity_dxdxdy 
) const
inline

Get raw derivative of smoothed derivative vorticity [0]: d^3/dx^3, [1]: d^3/dx^2dy, [2]: d^3/dxdy^2, [3]: d^3/dy^3.

Definition at line 1514 of file vorticity_smoother.h.

References oomph::Vector< _Tp >::initialise(), s, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ ncont_interpolated_values()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::ncont_interpolated_values ( ) const
inline

◆ npartial_derivative()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::npartial_derivative ( const unsigned &  n) const
inline

◆ nscalar_paraview()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::nscalar_paraview ( ) const
inline

Number of scalars/fields output by this element. Re-implements broken virtual function in base class.

Definition at line 987 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::ncont_interpolated_values().

Referenced by oomph::VorticitySmootherElement< ELEMENT >::scalar_name_paraview(), and oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview().

◆ nvelocity_derivatives_to_recover()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::nvelocity_derivatives_to_recover ( ) const
inline

The number of derivatives calculated in the velocity recovery. This does NOT include the zeroth derivatives as they are not "recovered".

Definition at line 683 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_velocity_derivative, and oomph::VorticitySmootherElement< ELEMENT >::npartial_derivative().

Referenced by oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared().

◆ nvorticity_derivatives_to_recover()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::nvorticity_derivatives_to_recover ( ) const
inline

The number of terms calculated in the vorticity recovery. Also includes the zeroth derivative, i.e. the vorticity itself.

Definition at line 663 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative, and oomph::VorticitySmootherElement< ELEMENT >::npartial_derivative().

Referenced by oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared().

◆ output()

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::output ( std::ostream &  outfile,
const unsigned &  nplot 
)
inline

◆ output_analytical_veloc_and_vorticity()

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::output_analytical_veloc_and_vorticity ( std::ostream &  outfile,
const unsigned &  nplot 
)
inline

Output exact velocity, vorticity, derivatives and indicator based on functions specified by two function pointers.

Definition at line 825 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), oomph::VorticitySmootherElement< ELEMENT >::Exact_vorticity_fct_pt, i, oomph::VorticitySmootherElement< ELEMENT >::N_dim, and s.

◆ output_smoothed_vorticity()

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::output_smoothed_vorticity ( std::ostream &  outfile,
const unsigned &  nplot 
)
inline

◆ pin_smoothed_vorticity()

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::pin_smoothed_vorticity ( )
inline

◆ recovered_dof_to_container_id()

template<class ELEMENT >
std::pair<unsigned, unsigned> oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id ( const unsigned &  i) const
inline

Helper function that, given the local dof number of the i-th vorticity or velocity derivative, returns the index in the container that stores the corresponding value. Note 1: this function goes hand-in-hand with create_container_for_vorticity_and_derivatives() Note 2: The input to this function is the i associated with the STORED nodal dof value. For example, if we're only recovering the velocity derivatives then i=0 is associated with du/dx.

Definition at line 460 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_velocity_derivative, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative, and oomph::VorticitySmootherElement< ELEMENT >::npartial_derivative().

Referenced by oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview(), oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof(), and oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared().

◆ required_nvalue()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::required_nvalue ( const unsigned &  n) const
inline

Number of values required at local node n. In order to simplify matters, we allocate storage for pressure variables at all the nodes and then pin those that are not used.

Definition at line 734 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Number_of_values_per_field.

◆ scalar_name_paraview()

template<class ELEMENT >
std::string oomph::VorticitySmootherElement< ELEMENT >::scalar_name_paraview ( const unsigned &  i) const
inline

Name of the i-th scalar field. Default implementation returns V1 for the first one, V2 for the second etc. Can (should!) be overloaded with more meaningful names in specific elements.

Definition at line 1064 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::N_dim, oomph::VorticitySmootherElement< ELEMENT >::nscalar_paraview(), oomph::oomph_info, oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index, oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof(), and oomph::StringConversion::to_string().

◆ scalar_value_paraview()

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview ( std::ofstream &  file_out,
const unsigned &  i,
const unsigned &  nplot 
) const
inline

◆ smoothed_vorticity_index()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::smoothed_vorticity_index ( ) const
inline

Index of smoothed vorticity – followed by derivatives.

Definition at line 725 of file vorticity_smoother.h.

References oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.

◆ stored_dof_to_recoverable_dof()

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof ( const unsigned &  i) const
inline

Given the STORED dof number, this function returns the global recovered number. For example, if we only want to recover the velocity derivatives then the stored dof number of du/dy is 1 (as 0 is associated with du/dx). The global recovered number is 11 (as there are currently 10 vorticity derivatives that can be recovered and du/dy is the second velocity derivative we can recover).

Definition at line 555 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_vorticity_derivatives, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative, oomph::VorticitySmootherElement< ELEMENT >::N_dim, oomph::VorticitySmootherElement< ELEMENT >::npartial_derivative(), and oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id().

Referenced by oomph::VorticitySmootherElement< ELEMENT >::scalar_name_paraview().

◆ vorticity_and_its_derivs()

template<class ELEMENT >
void oomph::VorticitySmootherElement< ELEMENT >::vorticity_and_its_derivs ( const Vector< double > &  s,
Vector< Vector< double >> &  vort_and_derivs 
) const
inline

◆ vorticity_dof_to_container_id()

template<class ELEMENT >
std::pair<unsigned, unsigned> oomph::VorticitySmootherElement< ELEMENT >::vorticity_dof_to_container_id ( const unsigned &  i) const
inline

Helper function that, given the local dof number of the i-th vorticity or velocity derivative, returns the index in the container that stores the corresponding value. Note 1: this function goes hand-in-hand with create_container_for_vorticity_and_derivatives() Note 2: i=0: vorticity itself; i>0: vorticity derivatives.

Definition at line 315 of file vorticity_smoother.h.

References i, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_velocity_derivatives, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_vorticity_derivatives, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_velocity_derivative, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative, and oomph::VorticitySmootherElement< ELEMENT >::npartial_derivative().

◆ vorticity_error_squared()

template<class ELEMENT >
double oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared ( const unsigned &  i)
inline

Member Data Documentation

◆ Exact_vorticity_fct_pt

template<class ELEMENT >
ExactVorticityFctPt oomph::VorticitySmootherElement< ELEMENT >::Exact_vorticity_fct_pt
private

◆ Maximum_order_of_recoverable_velocity_derivatives

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_velocity_derivatives
private

The current maximum order of velocity derivatives that can be recovered. Currently, we can recover the first derivatives: du/dx,du/dy,dv/dx,dv/dy.

Definition at line 1803 of file vorticity_smoother.h.

Referenced by oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_recoverable_velocity_derivative(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_dof_to_container_id(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().

◆ Maximum_order_of_recoverable_vorticity_derivatives

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_vorticity_derivatives
private

The current maximum order of vorticity derivatives that can be recovered. Currently, we can recover up to the third derivative: omega,d/dx,d/dy, d^2/dx^2,d^2/dxdy,d^2/dy^2, d^3/dx^3,d^3/dx^2dy,d^3/dxdy^2,d^3/dy^3.

Definition at line 1798 of file vorticity_smoother.h.

Referenced by oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_recoverable_vorticity_derivative(), oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_dof_to_container_id(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().

◆ Maximum_order_of_velocity_derivative

template<class ELEMENT >
int oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_velocity_derivative
private

◆ Maximum_order_of_vorticity_derivative

template<class ELEMENT >
int oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative
private

◆ N_dim

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::N_dim
private

◆ Number_of_values_per_field

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::Number_of_values_per_field
private

Number of values per field; how many of the following do we want: u,v,p,omega,d/dx,d/dy, d^2/dx^2,d^2/dxdy,d^2/dy^2, d^3/dx^3,d^3/dx^2dy,d^3/dxdy^2,d^3/dy^3, du/dx,du/dy,dv/dx,dv/dy.

Definition at line 1810 of file vorticity_smoother.h.

Referenced by oomph::VorticitySmootherElement< ELEMENT >::get_interpolated_values(), oomph::VorticitySmootherElement< ELEMENT >::ncont_interpolated_values(), oomph::VorticitySmootherElement< ELEMENT >::pin_smoothed_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::required_nvalue(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().

◆ Smoothed_vorticity_index

template<class ELEMENT >
unsigned oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index
private

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