Overloaded element that allows projection of vorticity. More...
#include <vorticity_smoother.h>
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... | |
ExactVorticityFctPt & | exact_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... | |
Overloaded element that allows projection of vorticity.
Definition at line 223 of file vorticity_smoother.h.
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.
|
inline |
Constructor.
Definition at line 227 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::Exact_vorticity_fct_pt, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_velocity_derivatives, oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_recoverable_vorticity_derivatives, oomph::VorticityRecoveryHelpers::RecoveryHelper::maximum_order_of_velocity_derivative(), oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_velocity_derivative, oomph::VorticityRecoveryHelpers::RecoveryHelper::maximum_order_of_vorticity_derivative(), oomph::VorticitySmootherElement< ELEMENT >::Maximum_order_of_vorticity_derivative, oomph::VorticitySmootherElement< ELEMENT >::N_dim, oomph::VorticityRecoveryHelpers::RecoveryHelper::ncont_interpolated_values(), oomph::VorticitySmootherElement< ELEMENT >::Number_of_values_per_field, oomph::VorticityRecoveryHelpers::Recovery_helper, and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.
|
inline |
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.
Definition at line 273 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 >::output(), oomph::VorticitySmootherElement< ELEMENT >::output_analytical_veloc_and_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::output_smoothed_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview(), and oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared().
|
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.
|
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.
|
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.
|
inline |
|
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.
|
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.
|
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.
|
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.
|
inline |
Get raw derivative of velocity.
Definition at line 1276 of file vorticity_smoother.h.
References oomph::oomph_info, and s.
|
inline |
Get raw derivative of velocity.
Definition at line 1242 of file vorticity_smoother.h.
References oomph::Vector< _Tp >::initialise(), and s.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
inline |
Number of continuously interpolated values:
Definition at line 741 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::Number_of_values_per_field.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::nscalar_paraview(), and oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview().
|
inline |
Call the function written in VorticityRecoveryHelpers.
Definition at line 702 of file vorticity_smoother.h.
References oomph::VorticityRecoveryHelpers::RecoveryHelper::npartial_derivative(), and oomph::VorticityRecoveryHelpers::Recovery_helper.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), oomph::VorticitySmootherElement< ELEMENT >::nvelocity_derivatives_to_recover(), oomph::VorticitySmootherElement< ELEMENT >::nvorticity_derivatives_to_recover(), oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id(), oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof(), and oomph::VorticitySmootherElement< ELEMENT >::vorticity_dof_to_container_id().
|
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().
|
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().
|
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().
|
inline |
Overloaded output function: Output velocity, pressure and the smoothed vorticity.
Definition at line 1159 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), i, oomph::VorticitySmootherElement< ELEMENT >::N_dim, s, oomph::OneDimLagrange::shape(), and oomph::VorticitySmootherElement< ELEMENT >::vorticity_and_its_derivs().
|
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.
|
inline |
Output the velocity, smoothed vorticity and derivatives.
Definition at line 899 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), i, oomph::VorticitySmootherElement< ELEMENT >::N_dim, s, and oomph::VorticitySmootherElement< ELEMENT >::vorticity_and_its_derivs().
|
inline |
Pin all smoothed vorticity quantities.
Definition at line 801 of file vorticity_smoother.h.
References i, oomph::VorticitySmootherElement< ELEMENT >::Number_of_values_per_field, oomph::Data::pin(), and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.
|
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().
|
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.
|
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().
|
inline |
Write values of the i-th scalar field at the plot points. Needs to be implemented for each new specific element type.
Definition at line 995 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), i, oomph::VorticitySmootherElement< ELEMENT >::N_dim, oomph::VorticitySmootherElement< ELEMENT >::ncont_interpolated_values(), oomph::VorticitySmootherElement< ELEMENT >::nscalar_paraview(), oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id(), s, and oomph::VorticitySmootherElement< ELEMENT >::vorticity_and_its_derivs().
|
inline |
Index of smoothed vorticity – followed by derivatives.
Definition at line 725 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.
|
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().
|
inline |
Compute smoothed vorticity and its derivatives.
Definition at line 1740 of file vorticity_smoother.h.
References i, oomph::OneDimLagrange::shape(), and oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::output(), oomph::VorticitySmootherElement< ELEMENT >::output_smoothed_vorticity(), and oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview().
|
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().
|
inline |
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).
Definition at line 1628 of file vorticity_smoother.h.
References oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), oomph::VorticitySmootherElement< ELEMENT >::Exact_vorticity_fct_pt, i, oomph::Vector< _Tp >::initialise(), oomph::VorticitySmootherElement< ELEMENT >::N_dim, oomph::VorticitySmootherElement< ELEMENT >::nvelocity_derivatives_to_recover(), oomph::VorticitySmootherElement< ELEMENT >::nvorticity_derivatives_to_recover(), oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id(), s, oomph::VorticitySmootherElement< ELEMENT >::Smoothed_vorticity_index, and oomph::QuadTreeNames::W.
|
private |
Pointer to function that specifies exact vorticity and derivs (for validation).
Definition at line 1823 of file vorticity_smoother.h.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::exact_vorticity_fct_pt(), oomph::VorticitySmootherElement< ELEMENT >::output_analytical_veloc_and_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().
|
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().
|
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().
|
private |
Maximum number of derivatives to retain in the velocity recovery. Note, the value 0 means we don't calculate the derivatives of the velocity.
Definition at line 1819 of file vorticity_smoother.h.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_velocity_derivative(), oomph::VorticitySmootherElement< ELEMENT >::nvelocity_derivatives_to_recover(), oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_dof_to_container_id(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().
|
private |
Maximum number of derivatives to retain in the vorticity recovery. Note, the value -1 means we ONLY output u,v[,w],p.
Definition at line 1814 of file vorticity_smoother.h.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::create_container_for_vorticity_and_derivatives(), oomph::VorticitySmootherElement< ELEMENT >::get_maximum_order_of_vorticity_derivative(), oomph::VorticitySmootherElement< ELEMENT >::nvorticity_derivatives_to_recover(), oomph::VorticitySmootherElement< ELEMENT >::recovered_dof_to_container_id(), oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_dof_to_container_id(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().
|
private |
Number of dimensions in the element.
Definition at line 1787 of file vorticity_smoother.h.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::get_interpolated_values(), oomph::VorticitySmootherElement< ELEMENT >::output(), oomph::VorticitySmootherElement< ELEMENT >::output_analytical_veloc_and_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::output_smoothed_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::scalar_name_paraview(), oomph::VorticitySmootherElement< ELEMENT >::scalar_value_paraview(), oomph::VorticitySmootherElement< ELEMENT >::stored_dof_to_recoverable_dof(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().
|
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().
|
private |
Index of smoothed vorticity – followed by derivatives; in 2D this has value 3.
Definition at line 1791 of file vorticity_smoother.h.
Referenced by oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_deriv(), oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_second_deriv(), oomph::VorticitySmootherElement< ELEMENT >::get_raw_vorticity_third_deriv(), oomph::VorticitySmootherElement< ELEMENT >::pin_smoothed_vorticity(), oomph::VorticitySmootherElement< ELEMENT >::scalar_name_paraview(), oomph::VorticitySmootherElement< ELEMENT >::smoothed_vorticity_index(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_and_its_derivs(), oomph::VorticitySmootherElement< ELEMENT >::vorticity_error_squared(), and oomph::VorticitySmootherElement< ELEMENT >::VorticitySmootherElement().