polynomial_functions module reference

Polynomial functions

Functions/Subroutines

evaluation_polynomial

Pointwise evaluation of a polynomial in arbitrary units [A] at x

first_derivative_polynomial

Calculates the first derivative of a polynomial evaluated in arbitrary units of [A H-1] at a point x

integration_polynomial

Exact integration of polynomial of degree npoly in arbitrary units of [A H]

Detailed Description

Date of creation: 2008.06.12 L. White

This module contains routines that handle polynomials.

Functions/Subroutine Documentation

real function evaluation_polynomial(coeff, ncoef, x)

Pointwise evaluation of a polynomial in arbitrary units [A] at x

The polynomial is defined by the coefficients contained in the array of the same name, as follows: C(1) + C(2)x + C(3)x^2 + C(4)x^3 + ... where C refers to the array 'coeff'. The number of coefficients is given by ncoef and x is the coordinate where the polynomial is to be evaluated.

Parameters
  • coeff [in]

    The coefficients of the polynomial, in units that vary with the index k as [A H^(k-1)]

  • ncoef [in]

    The number of polynomial coefficients

  • x [in]

    The position at which to evaluate the polynomial in arbitrary thickness units [H]

Callers call graph
Callers of polynomial_functions::evaluation_polynomial calls cluster_mom_neutral_diffusion MOM_neutral_diffusion cluster_polynomial_functions polynomial_functions cluster_regrid_edge_values regrid_edge_values mom_neutral_diffusion::find_neutral_pos_full find_neutral_pos_full [private/internal] polynomial_functions::evaluation_polynomial evaluation_polynomial mom_neutral_diffusion::find_neutral_pos_full->polynomial_functions::evaluation_polynomial mom_neutral_diffusion::find_neutral_pos_linear find_neutral_pos_linear [private/internal] mom_neutral_diffusion::find_neutral_pos_linear->polynomial_functions::evaluation_polynomial mom_neutral_diffusion::neutral_diffusion_calc_coeffs neutral_diffusion_calc_coeffs mom_neutral_diffusion::neutral_diffusion_calc_coeffs->polynomial_functions::evaluation_polynomial mom_neutral_diffusion::neutral_surface_t_eval neutral_surface_T_eval [private/internal] mom_neutral_diffusion::neutral_surface_t_eval->polynomial_functions::evaluation_polynomial regrid_edge_values::edge_slopes_implicit_h3 edge_slopes_implicit_h3 regrid_edge_values::edge_slopes_implicit_h3->polynomial_functions::evaluation_polynomial regrid_edge_values::edge_values_explicit_h4 edge_values_explicit_h4 regrid_edge_values::edge_values_explicit_h4->polynomial_functions::evaluation_polynomial regrid_edge_values::edge_values_implicit_h4 edge_values_implicit_h4 regrid_edge_values::edge_values_implicit_h4->polynomial_functions::evaluation_polynomial regrid_edge_values::edge_values_implicit_h6 edge_values_implicit_h6 regrid_edge_values::edge_values_implicit_h6->polynomial_functions::evaluation_polynomial
Text view
real function first_derivative_polynomial(coeff, ncoef, x)

Calculates the first derivative of a polynomial evaluated in arbitrary units of [A H-1] at a point x

The polynomial is defined by the coefficients contained in the array of the same name, as follows: C(1) + C(2)x + C(3)x^2 + C(4)x^3 + ... where C refers to the array 'coeff'. The number of coefficients is given by ncoef and x is the coordinate where the polynomial's derivative is to be evaluated.

Parameters
  • coeff [in]

    The coefficients of the polynomial, in units that vary with the index k as [A H^(k-1)]

  • ncoef [in]

    The number of polynomial coefficients

  • x [in]

    The position at which to evaluate the derivative in arbitrary thickness units [H]

Callers call graph
Callers of polynomial_functions::first_derivative_polynomial calls cluster_mom_neutral_diffusion MOM_neutral_diffusion cluster_polynomial_functions polynomial_functions mom_neutral_diffusion::find_neutral_pos_linear find_neutral_pos_linear [private/internal] polynomial_functions::first_derivative_polynomial first_derivative_polynomial mom_neutral_diffusion::find_neutral_pos_linear->polynomial_functions::first_derivative_polynomial
Text view
real function integration_polynomial(xi0, xi1, Coeff, npoly)

Exact integration of polynomial of degree npoly in arbitrary units of [A H]

The array of coefficients (Coeff) must be of size npoly+1.

Parameters
  • xi0 [in]

    The lower bound of the integral in arbitrary thickness units [H]

  • xi1 [in]

    The upper bound of the integral in arbitrary thickness units [H]

  • Coeff [in]

    The coefficients of the polynomial, in units that vary with the index k as [A H^(k-1)]

  • npoly [in]

    The degree of the polynomial

API generated with Flint · Rendered from reStructuredText