Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 41) sorted by relevance

12

/libCEED/tests/
H A Dt415-qfunction.c32 for (CeedInt g = 0; g < dim; g++) { in main() local
34 dx_array[i + (g * dim + d) * num_qpts] = d == g; in main()
39 for (CeedInt g = 0; g < dim; g++) { in main() local
41 du_array[i + (g * num_comp + c) * num_qpts] = c + 1; in main()
82 for (CeedInt g = 0; g < dim; g++) sum += v_array[i + (g * num_comp + c) * num_qpts]; in main() local
H A Dt414-qfunction.c32 for (CeedInt g = 0; g < dim; g++) { in main() local
34 dx_array[i + (g * dim + d) * num_qpts] = d == g; in main()
/libCEED/examples/fluids/qfunctions/
H A Ddensitycurrent.h100 const CeedScalar *g_vec = gas->g; in Exact_DC()
101 const CeedScalar g = -g_vec[2]; in Exact_DC() local
115 const CeedScalar theta = theta0 * exp(Square(N) * z / g) + delta_theta; in Exact_DC()
118 const CeedScalar Pi = 1. + Square(g) * (exp(-Square(N) * z / g) - 1.) / (cp * theta0 * Square(N)); in Exact_DC()
H A Dnewtonian.h158 const CeedScalar *g = context->g; in RHSFunction_Newtonian() local
189 …edScalar body_force[5] = {0, s.U.density * g[0], s.U.density * g[1], s.U.density * g[2], Dot3(s.U.… in RHSFunction_Newtonian()
229 const CeedScalar *g = context->g; in IFunction_Newtonian() local
262 …edScalar body_force[5] = {0, s.U.density * g[0], s.U.density * g[1], s.U.density * g[2], Dot3(s.U.… in IFunction_Newtonian()
318 const CeedScalar *g = context->g; in IJacobian_Newtonian() local
355 …calar dbody_force[5] = {0, ds.U.density * g[0], ds.U.density * g[1], ds.U.density * g[2], Dot3(ds.… in IJacobian_Newtonian()
H A Dnewtonian_types.h29 CeedScalar g[3]; member
/libCEED/examples/fluids/problems/
H A Dchannel.c91 CeedScalar g[] = {channel_ctx->B / rho, 0., 0.}; in NS_CHANNEL() local
92 PetscCall(PetscArraycpy(newtonian_ig_ctx->g, g, 3)); in NS_CHANNEL()
H A Dnewtonian.c244 CeedScalar g[3] = {0, 0, 0}; // m/s^2 in NS_NEWTONIAN_IG() local
331 …PetscCall(PetscOptionsRealArray("-gravity", "Gravitational acceleration vector", NULL, g, &dim, &g… in NS_NEWTONIAN_IG()
403 for (PetscInt i = 0; i < 3; i++) g[i] *= m_per_squared_s; in NS_NEWTONIAN_IG()
433 PetscCall(PetscArraycpy(newtonian_ig_ctx->g, g, 3)); in NS_NEWTONIAN_IG()
/libCEED/benchmarks/
H A DREADME.md29 * `max_dofs_node=<number>`, e.g. `max_dofs_node=1000000` - this sets the upper
31 * `max_p=<number>`, e.g. `max_p=12` - this sets the highest degree for which the
38 e.g.:
/libCEED/julia/LibCEED.jl/examples/
H A Dex2-surface.jl158 @printf("Exact mesh surface area : % .14g\n", exact_sa)
159 @printf("Computed mesh surface area : % .14g\n", sa)
160 @printf("Surface area error : % .14g\n", sa - exact_sa)
H A Dex1-volume.jl145 @printf("Exact mesh volume : % .14g\n", exact_vol)
146 @printf("Computed mesh volume : % .14g\n", vol)
147 @printf("Volume error : % .14g\n", vol - exact_vol)
H A Dex3-volume.jl184 @printf("Exact mesh volume : % .14g\n", exact_vol)
185 @printf("Computed mesh volume : % .14g\n", vol)
186 @printf("Volume error : % .14g\n", vol - exact_vol)
H A Dex1-volume-c.jl406 @printf("Exact mesh volume : % .14g\n", exact_vol)
407 @printf("Computed mesh volume : % .14g\n", vol)
408 @printf("Volume error : % .14g\n", vol - exact_vol)
/libCEED/julia/LibCEED.jl/
H A DREADME.md9 If you require features of a specific build of libCEED (e.g. CUDA/GPU support, specific compiler fl…
19 If you wish to use a different libCEED binary (e.g. one built from source), LibCEED.jl can be confi…
/libCEED/examples/python/
H A Dtutorial-6-shell.ipynb186 " QFunction source [-g] : gallery\n",
200 "! ./ex1-volume -d 3 -g"
207 …line option `-d` specifies the dimensionality of the domain Ω. The option `-g` specifies that the …
277 " QFunction source [-g] : gallery\n",
291 "! ./ex2-surface -d 3 -g"
298 …line option `-d` specifies the dimensionality of the domain Ω. The option `-g` specifies that the …
H A Dtutorial-0-ceed.ipynb95 …"Similarly, if libCEED is built with GPU support, you can specify a GPU backend, e.g., `/gpu/hip` …
/libCEED/julia/LibCEED.jl/docs/src/
H A DLibCEED.md6 with a other versions of the libCEED library (e.g. compiled from source).
H A DMisc.md8 If the matrix or vector is given in a statically sized container (e.g. using
H A Dindex.md16 libCEED library. If you require features of a specific build of libCEED (e.g.
32 you wish to use a different libCEED binary (e.g. one built from source),
/libCEED/examples/solids/
H A DREADME.md54 Note that many mesh formats require PETSc to be configured appropriately; e.g., `--download-exodusi…
215 * - Body force (gravity) on volume, $\int \rho \bm g$
219 …placement independently (e.g., {code}`-units_meter 100` to measure displacement in centimeters), b…
/libCEED/examples/fluids/src/
H A Dsetupts.c59 const PetscScalar *g; in Surface_Forces_NS() local
68 PetscCall(VecGetArrayRead(G_loc, &g)); in Surface_Forces_NS()
84 PetscCall(DMPlexPointLocalRead(dm, p, g, &r)); in Surface_Forces_NS()
98 PetscCall(VecRestoreArrayRead(G_loc, &g)); in Surface_Forces_NS()
/libCEED/examples/fluids/include/
H A Dmat-ceed.h37 PETSC_CEED_EXTERN PetscErrorCode MatCeedSetOperation(Mat mat, MatOperation op, void (*g)(void));
/libCEED/examples/nek/bps/
H A Dbps.usr1481 subroutine ax_e_bp1(w,u,g,h1,h2,b,ju,us,ut)
1483 C Input: u,g,h1,h2,b,ju,us,ut Output: w
1488 real*8 w(lxyz),u(lxyz),g(lg,lxyz),h1(lxyz),h2(lxyz),b(lxyz)
1543 subroutine ax_e_bp3(w,u,g,ur,us,ut,wk)
1545 C Input: u,g,ur,us,ut,wk Output: w
1555 real*8 w(lxyz),u(lxyz),g(2*ldim,lxyzq)
1563 wr = g(1,i)*ur(i) + g(2,i)*us(i) + g(3,i)*ut(i)
1564 ws = g(2,i)*ur(i) + g(4,i)*us(i) + g(5,i)*ut(i)
1565 wt = g(3,i)*ur(i) + g(5,i)*us(i) + g(6,i)*ut(i)
/libCEED/examples/petsc/
H A Dindex.md125 …e identified the $2\times 2$ contravariant metric tensor $\bm g$ (sometimes written $\bm g^{ij}$),…
129 \bm g = \left(\frac{\partial \overset{\circ}{\bm{x}}}{\partial \bm{X}}^T \frac{\partial\overset{\ci…
150 -\nabla\cdot \left( \kappa \left( x \right) \nabla x \right) = g \left( x \right)
/libCEED/doc/sphinx/source/
H A Dprecision.md18 … can be used for compile-time checking of {code}`CeedScalar`'s type; see, e.g., {code}`tests/t314-…
/libCEED/examples/fluids/
H A Dindex.md28 …3 \times 3$ identity matrix, $\bm{b}$ is a body force vector (e.g., gravity vector $\bm{g}$), $k$…
105 …t represents contraction in just one, which should be clear from context, e.g., $\bm v \cdot \bm S…
143 \bm f(\bm q_N) \equiv \bm g(t^{n+1}, \bm{q}_N, \bm{\dot{q}}_N) = 0 \, ,
157 …tial \bm f}{\partial \bm q_N} = \frac{\partial \bm g}{\partial \bm q_N} + \alpha \frac{\partial \b…
266 \tau_c &= \frac{C_c \mathcal{F}}{8\rho \trace(\bm g)} \\
274 + \bm u \cdot (\bm u \cdot \bm g)\right]
275 + C_v \mu^2 \Vert \bm g \Vert_F ^2}
278 where $\bm g = \nabla_{\bm x} \bm{X}^T \cdot \nabla_{\bm x} \bm{X}$ is the metric tensor and $\Vert…
285 + \frac{\bm u \cdot (\bm u \cdot \bm g)}{C_a}
286 + \frac{\kappa^2 \Vert \bm g \Vert_F ^2}{C_d} \right]^{-1/2}
[all …]

12