PolyFEM
Loading...
Searching...
No Matches
auto_q_bases_3d_grad_0.cpp
Go to the documentation of this file.
1
#include <Eigen/Dense>
2
#include <cassert>
3
4
namespace
polyfem
{
5
namespace
autogen {
6
namespace
{
7
void
q_0_basis_grad_value_3d_single_0(
double
x
,
double
y
,
double
z
,
double
*
val
) {
8
{
val
[0] = 0;}
9
{
val
[1] = 0;}
10
{
val
[2] = 0;}
11
}
12
13
14
15
}
16
17
void
q_0_basis_grad_value_3d
(
const
int
local_index,
const
Eigen::MatrixXd &uv, Eigen::MatrixXd &
val
){
18
val
.resize(uv.rows(), 3);
19
double
gradient[3];
20
switch
(local_index){
21
case
0:
22
for
(Eigen::Index i = 0; i < uv.rows(); ++i) {
23
q_0_basis_grad_value_3d_single_0(uv(i, 0), uv(i, 1), uv(i, 2), gradient);
24
val
(i, 0) = gradient[0];
25
val
(i, 1) = gradient[1];
26
val
(i, 2) = gradient[2];
27
}
28
break
;
29
default
: assert(
false
);
30
}
31
}
32
33
}}
val
double val
Definition
Assembler.cpp:86
y
int y
Definition
SplineBasis3d.cpp:55
z
int z
Definition
SplineBasis3d.cpp:55
x
int x
Definition
SplineBasis3d.cpp:55
polyfem::autogen::q_0_basis_grad_value_3d
void q_0_basis_grad_value_3d(const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)
Definition
auto_q_bases_3d_grad_0.cpp:17
polyfem
Definition
ActiveFiber.cpp:4
src
polyfem
autogen
auto_q_bases_3d_grad_0.cpp
Generated by
1.9.8