Home
last modified time | relevance | path

Searched refs:M_PI (Results 1 – 21 of 21) sorted by relevance

/libCEED/examples/petsc/qfunctions/bps/
H A Dbp13.h20 #ifndef M_PI in SetupMassDiffRhs()
21 #define M_PI 3.14159265358979323846 in SetupMassDiffRhs() macro
31 …true_soln[i] = sin(M_PI * (c[0] + k[0] * x[i + Q * 0])) * sin(M_PI * (c[1] + k[1] * x[i + Q * 1]))… in SetupMassDiffRhs()
33 …rhs[i] = w[i + Q * 0] * (M_PI * M_PI * (k[0] * k[0] + k[1] * k[1] + k[2] * k[2]) + 1.0) * true_sol… in SetupMassDiffRhs()
H A Dbp4.h20 #ifndef M_PI in SetupDiffRhs3()
21 #define M_PI 3.14159265358979323846 in SetupDiffRhs3() macro
33 …sin(M_PI * (c[0] + k[0] * x[i + Q * 0])) * sin(M_PI * (c[1] + k[1] * x[i + Q * 1])) * sin(M_PI * (… in SetupDiffRhs3()
40 …rhs[i + 0 * Q] = w[i + Q * 0] * M_PI * M_PI * (k[0] * k[0] + k[1] * k[1] + k[2] * k[2]) * true_sol… in SetupDiffRhs3()
H A Dbp24.h20 #ifndef M_PI in SetupMassDiffRhs3()
21 #define M_PI 3.14159265358979323846 in SetupMassDiffRhs3() macro
33 …sin(M_PI * (c[0] + k[0] * x[i + Q * 0])) * sin(M_PI * (c[1] + k[1] * x[i + Q * 1])) * sin(M_PI * (… in SetupMassDiffRhs3()
40 …rhs[i + 0 * Q] = w[i + Q * 0] * (M_PI * M_PI * (k[0] * k[0] + k[1] * k[1] + k[2] * k[2]) + 1.0) * … in SetupMassDiffRhs3()
H A Dbp3.h77 #ifndef M_PI in SetupDiffRhs()
78 #define M_PI 3.14159265358979323846 in SetupDiffRhs() macro
88 …true_soln[i] = sin(M_PI * (c[0] + k[0] * x[i + Q * 0])) * sin(M_PI * (c[1] + k[1] * x[i + Q * 1]))… in SetupDiffRhs()
90 rhs[i] = w[i + Q * 0] * M_PI * M_PI * (k[0] * k[0] + k[1] * k[1] + k[2] * k[2]) * true_soln[i]; in SetupDiffRhs()
/libCEED/examples/mfem/
H A Dbp3.cpp46 double val = sin(M_PI * (x[0] + k[0] * pt(0))); in solution()
47 for (int d = 1; d < pt.Size(); d++) val *= sin(M_PI * (x[d] + k[d] * pt(d))); in solution()
56 f[0] = sin(M_PI * (x[0] + k[0] * pt(0))); in rhs()
57 l[0] = M_PI * M_PI * k[0] * k[0] * f[0]; in rhs()
61 f[d] = sin(M_PI * (x[d] + k[d] * pt(d))); in rhs()
62 l[d] = M_PI * M_PI * k[d] * k[d] * f[d]; in rhs()
/libCEED/examples/solids/src/
H A Dboundary.c37 #ifndef M_PI
38 #define M_PI 3.14159265358979323846 macro
56 c_0 = clampMax[6] * M_PI, c_1 = clampMax[7] * M_PI, cx = kx * x + ky * y + kz * z, in BCClamp()
/libCEED/examples/nek/bps/
H A Dbps.h14 #ifndef M_PI
15 #define M_PI 3.14159265358979323846 macro
91 …rhs[i] = rho * M_PI * M_PI * (k[0] * k[0] + k[1] * k[1] + k[2] * k[2]) * sin(M_PI *… in diffsetupf()
92 sin(M_PI * (c[1] + k[1] * x[i + Q * 1])) * sin(M_PI * (c[2] + k[2] * x[i + Q * 2])); in diffsetupf()
/libCEED/examples/petsc/
H A Darea.c54 #ifndef M_PI
55 #define M_PI 3.14159265358979323846 macro
197 CeedScalar exact_surface_area = 4 * M_PI; in main()
/libCEED/examples/rust-qfunctions/
H A Dex1-volume.c406 #ifndef M_PI
407 #define M_PI 3.14159265358979323846 macro
419 coords[i] = 0.5 + 1. / sqrt(3.) * sin((2. / 3.) * M_PI * (coords[i] - 0.5)); in TransformMeshCoords()
435 exact_volume = 3. / 4. * M_PI; in TransformMeshCoords()
/libCEED/examples/ceed/
H A Dex3-volume.c386 #ifndef M_PI
387 #define M_PI 3.14159265358979323846 macro
399 coords[i] = 0.5 + 1. / sqrt(3.) * sin((2. / 3.) * M_PI * (coords[i] - 0.5)); in TransformMeshCoords()
414 exact_volume = 3. / 4. * M_PI; in TransformMeshCoords()
H A Dex1-volume.c396 #ifndef M_PI
397 #define M_PI 3.14159265358979323846 macro
409 coords[i] = 0.5 + 1. / sqrt(3.) * sin((2. / 3.) * M_PI * (coords[i] - 0.5)); in TransformMeshCoords()
425 exact_volume = 3. / 4. * M_PI; in TransformMeshCoords()
H A Dex2-surface.c420 #ifndef M_PI
421 #define M_PI 3.14159265358979323846 macro
431 coords[i] = 0.5 + 1. / sqrt(3.) * sin((2. / 3.) * M_PI * (coords[i] - 0.5)); in TransformMeshCoords()
/libCEED/examples/fluids/qfunctions/
H A Dtaylorgreen.h32 ScaleN(x, 2 * M_PI / context->lx, 3); in ICsTaylorGreen()
H A Dadvection.h81 const CeedScalar theta = dim == 2 ? M_PI / 3 : M_PI; in Exact_AdvectionGeneric()
133 q[4] = r <= rc ? .5 + .5 * cos(r * M_PI / rc) : 0; in Exact_AdvectionGeneric()
139 q[4] = r > half_width ? 0. : cos(2 * M_PI * r / half_width + M_PI) + 1.; in Exact_AdvectionGeneric()
H A Deulervortex.h83 const CeedScalar C = vortex_strength * exp((1. - r * r) / 2.) / (2. * M_PI); in Exact_Euler()
84 … = -(gamma - 1.) * vortex_strength * vortex_strength * exp(1 - r * r) / (8. * gamma * M_PI * M_PI); in Exact_Euler()
86 …eedScalar S_bubble = (gamma - 1.) * vortex_strength * vortex_strength / (8. * gamma * M_PI * M_PI); in Exact_Euler()
H A Ddensitycurrent.h114 const CeedScalar delta_theta = r <= rc ? thetaC * (1. + cos(M_PI * r / rc)) / 2. : 0.; in Exact_DC()
H A Dutils.h14 #ifndef M_PI
15 #define M_PI 3.14159265358979323846 macro
H A Dstg_shur14.h110 *ke = wall_dist == 0 ? 1e16 : 2 * M_PI / Min(2 * wall_dist, 3 * lt); in SpectrumConstants()
111 *keta = 2 * M_PI * pow(Cube(nu) / eps, -0.25); in SpectrumConstants()
112 *kcut = M_PI / Min(Max(Max(hNodSep[1], hNodSep[2]), 0.3 * (*hmax)) + 0.1 * wall_dist, *hmax); in SpectrumConstants()
H A Ddifferential_filter.h196 const CeedScalar omega = 2 * M_PI; in DifferentialFilter_MMS_IC()
/libCEED/examples/fluids/problems/
H A Dblasius.c174 PetscReal angle_coeff = tan(top_angle * (M_PI / 180)); in ModifyMesh()
H A Dstg_shur14.c213 CeedScalar kmin = M_PI / le_max; in GetStgContextData()