VTK  9.4.20241103
Variables
PyrC2Gradient.h File Reference

Go to the source code of this file.

Variables

const RealT ZERO = 0.
 
const RealT HALF = 0.5
 
const RealT FOURTH = 0.25
 
const RealT NINTH = 1. / 9.
 
const RealT FOURNINTHS = 4. / 9.
 
const RealT ONE = 1.
 
const RealT TWO = 2.
 
const RealT FOUR = 4.
 
const RealT EIGHT = 9.
 
const RealT TWENTYSEVEN = 27.
 
const RealT K1 = -FOURTH
 
const RealT K5 = ONE
 
const RealT K6 = -HALF
 
const RealT K10 = -ONE
 
const RealT K14 = ONE
 
const RealT K15A = TWENTYSEVEN / EIGHT
 
const RealT K15B = -TWENTYSEVEN / EIGHT
 
RealT r2 = rr * rr
 
RealT s2 = ss * ss
 
RealT t2 = tt * tt
 
RealT rs = rr * ss
 
RealT rt = rr * tt
 
RealT st = ss * tt
 
RealT r2s = r2 * ss
 
RealT rs2 = rr * s2
 
RealT r2s2 = r2 * s2
 
RealT tm = tt - ONE
 
RealT tm2 = tm * tm
 
RealT tm3 = tm2 * tm
 
RealT tm4 = tm3 * tm
 
RealT mt = abs(tm) > eps ? ONE / tm : ZERO
 
RealT m2t = abs(tm2) > eps ? ONE / tm2 : ZERO
 
RealT m3t = abs(tm3) > eps ? ONE / tm3 : ZERO
 
RealT m4t = abs(tm4) > eps ? ONE / tm4 : ZERO
 
 basisGradient [0] = K1 * (rs * mt - rr - ss + tt + (ss * mt - ONE) * (rr + ss - ONE) - ONE)
 

Variable Documentation

◆ ZERO

const RealT ZERO = 0.

Definition at line 1 of file PyrC2Gradient.h.

◆ HALF

const RealT HALF = 0.5

Definition at line 2 of file PyrC2Gradient.h.

◆ FOURTH

const RealT FOURTH = 0.25

Definition at line 3 of file PyrC2Gradient.h.

◆ NINTH

const RealT NINTH = 1. / 9.

Definition at line 4 of file PyrC2Gradient.h.

◆ FOURNINTHS

const RealT FOURNINTHS = 4. / 9.

Definition at line 5 of file PyrC2Gradient.h.

◆ ONE

const RealT ONE = 1.

Definition at line 6 of file PyrC2Gradient.h.

◆ TWO

const RealT TWO = 2.

Definition at line 7 of file PyrC2Gradient.h.

◆ FOUR

const RealT FOUR = 4.

Definition at line 8 of file PyrC2Gradient.h.

◆ EIGHT

const RealT EIGHT = 9.

Definition at line 9 of file PyrC2Gradient.h.

◆ TWENTYSEVEN

const RealT TWENTYSEVEN = 27.

Definition at line 10 of file PyrC2Gradient.h.

◆ K1

const RealT K1 = -FOURTH

Definition at line 12 of file PyrC2Gradient.h.

◆ K5

const RealT K5 = ONE

Definition at line 13 of file PyrC2Gradient.h.

◆ K6

const RealT K6 = -HALF

Definition at line 14 of file PyrC2Gradient.h.

◆ K10

const RealT K10 = -ONE

Definition at line 15 of file PyrC2Gradient.h.

◆ K14

const RealT K14 = ONE

Definition at line 16 of file PyrC2Gradient.h.

◆ K15A

const RealT K15A = TWENTYSEVEN / EIGHT

Definition at line 17 of file PyrC2Gradient.h.

◆ K15B

const RealT K15B = -TWENTYSEVEN / EIGHT

Definition at line 18 of file PyrC2Gradient.h.

◆ r2

RealT r2 = rr * rr

Definition at line 21 of file PyrC2Gradient.h.

◆ s2

RealT s2 = ss * ss

Definition at line 22 of file PyrC2Gradient.h.

◆ t2

RealT t2 = tt * tt

Definition at line 23 of file PyrC2Gradient.h.

◆ rs

RealT rs = rr * ss

Definition at line 24 of file PyrC2Gradient.h.

◆ rt

RealT rt = rr * tt

Definition at line 25 of file PyrC2Gradient.h.

◆ st

RealT st = ss * tt

Definition at line 26 of file PyrC2Gradient.h.

◆ r2s

RealT r2s = r2 * ss

Definition at line 27 of file PyrC2Gradient.h.

◆ rs2

RealT rs2 = rr * s2

Definition at line 28 of file PyrC2Gradient.h.

◆ r2s2

RealT r2s2 = r2 * s2

Definition at line 29 of file PyrC2Gradient.h.

◆ tm

RealT tm = tt - ONE

Definition at line 32 of file PyrC2Gradient.h.

◆ tm2

RealT tm2 = tm * tm

Definition at line 33 of file PyrC2Gradient.h.

◆ tm3

RealT tm3 = tm2 * tm

Definition at line 34 of file PyrC2Gradient.h.

◆ tm4

RealT tm4 = tm3 * tm

Definition at line 35 of file PyrC2Gradient.h.

◆ mt

RealT mt = abs(tm) > eps ? ONE / tm : ZERO

Definition at line 38 of file PyrC2Gradient.h.

◆ m2t

RealT m2t = abs(tm2) > eps ? ONE / tm2 : ZERO

Definition at line 39 of file PyrC2Gradient.h.

◆ m3t

RealT m3t = abs(tm3) > eps ? ONE / tm3 : ZERO

Definition at line 40 of file PyrC2Gradient.h.

◆ m4t

RealT m4t = abs(tm4) > eps ? ONE / tm4 : ZERO

Definition at line 41 of file PyrC2Gradient.h.

◆ basisGradient

basisGradient[38] = K1 * (rs * mt - rr - ss + tt + (ss * mt - ONE) * (rr + ss - ONE) - ONE)

Definition at line 44 of file PyrC2Gradient.h.