SPEED
PHI.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

real *8 function phi (ng, csii, csij)
 Evaluates Lengendre basis function on a specific point.
 

Function/Subroutine Documentation

◆ phi()

real*8 function phi ( integer*4  ng,
  csii,
  csij 
)

Evaluates Lengendre basis function on a specific point.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]ngdegree of the polynomial
[in]csiii-th Legendre function
[in]csijnode where the Legendre function is evaluated
[out]PHIPHI^{ng}_i(xi_j) i-th (1-D) basis function of degree ng evaluate at node csij

Definition at line 30 of file PHI.f90.

31
32 implicit real*8(a-h,o-z)
33 integer*4 :: ng
34
35 call get_legendre_value_2der(p2der2,p2,p2der,p1,p1der,ng,csii)
36 call get_legendre_value_2der(q2der2,q2,q2der,q1,q1der,ng,csij)
37
38 if(abs(csii - csij).le. 1.e-8) then
39 phi = 1.d0
40 else
41 phi = (1.d0-csij**2.d0)*q2der /(ng*(ng+1.d0)*p2*(csii-csij))
42 if(abs(phi) .lt. 1.e-10) then
43 phi = 0.d0
44 endif
45 endif
46
47 return
subroutine get_legendre_value_2der(p2der2, p2, p2der, p1, p1der, n, x)
Computes Legendre polynomial and its first and second derivative on a given point x.
real *8 function phi(ng, csii, csij)
Evaluates Lengendre basis function on a specific point.
Definition PHI.f90:31

References get_legendre_value_2der(), and phi().

Referenced by compute_energy_error(), make_extint_forces(), make_loc_matrix_dg(), make_strain_rot_stress_tensor(), and phi().

Here is the call graph for this function:
Here is the caller graph for this function: