PolyFEM
Loading...
Searching...
No Matches
p_bases Namespace Reference

Classes

class  Lagrange
 
class  ReferenceSimplex
 

Functions

 bernstein_space (order, nsd)
 
 create_point_set (order, nsd)
 
 create_matrix (equations, coeffs)
 
 parse_args ()
 

Variables

 x
 
 y
 
 z
 
 args = parse_args()
 
list dims = [2, 3]
 
list orders = [0, 1, 2, 3, 4]
 
str cpp = "#include \"auto_p_bases.hpp\"\n\n\n"
 
str hpp = "#pragma once\n\n#include <Eigen/Dense>\n#include \"p_n_bases.hpp\"\n#include <cassert>\n\n"
 
str suffix = 2 else "_3d"
 
str unique_nodes
 
str unique_fun
 
str dunique_fun
 
list vertices = [[0, 0], [1, 0], [0, 1]]
 
 nbf
 
 N
 
 points
 
 fe = Lagrange(dim, order)
 
 current_indices = list(range(0, len(fe.points)))
 
list indices = []
 
list vv = vertices[i]
 
int norm = 0
 
 nn = max(0, order - 2)
 
 npts = int(nn * (nn + 1) / 2)
 
list tmp = []
 
 reverse
 
str nodes
 
str func
 
str dfunc
 
str default_base = 3 else "p_n_basis_value_2d(p, local_index, uv, val);"
 
str default_dbase = 3 else "p_n_basis_grad_value_2d(p, local_index, uv, val);"
 
str default_nodes = 3 else "p_n_nodes_2d(p, val);"
 
str base = "auto x=uv.col(0).array();\nauto y=uv.col(1).array();"
 
str dbase = base
 
list real_index = indices[i]
 
 path = os.path.abspath(args.output)
 

Function Documentation

◆ bernstein_space()

p_bases.bernstein_space (   order,
  nsd 
)

Definition at line 39 of file p_bases.py.

Referenced by p_bases.Lagrange.compute_basis().

Here is the caller graph for this function:

◆ create_matrix()

p_bases.create_matrix (   equations,
  coeffs 
)

Definition at line 106 of file p_bases.py.

Referenced by p_bases.Lagrange.compute_basis().

Here is the caller graph for this function:

◆ create_point_set()

p_bases.create_point_set (   order,
  nsd 
)

Definition at line 81 of file p_bases.py.

Referenced by p_bases.Lagrange.compute_basis().

Here is the caller graph for this function:

◆ parse_args()

p_bases.parse_args ( )

Definition at line 165 of file p_bases.py.

Variable Documentation

◆ args

p_bases.args = parse_args()

Definition at line 174 of file p_bases.py.

◆ base

str p_bases.base = "auto x=uv.col(0).array();\nauto y=uv.col(1).array();"

Definition at line 402 of file p_bases.py.

◆ cpp

str p_bases.cpp = "#include \"auto_p_bases.hpp\"\n\n\n"

Definition at line 181 of file p_bases.py.

◆ current_indices

p_bases.current_indices = list(range(0, len(fe.points)))

Definition at line 231 of file p_bases.py.

◆ dbase

str p_bases.dbase = base

Definition at line 406 of file p_bases.py.

◆ default_base

str p_bases.default_base = 3 else "p_n_basis_value_2d(p, local_index, uv, val);"

Definition at line 398 of file p_bases.py.

◆ default_dbase

str p_bases.default_dbase = 3 else "p_n_basis_grad_value_2d(p, local_index, uv, val);"

Definition at line 399 of file p_bases.py.

◆ default_nodes

str p_bases.default_nodes = 3 else "p_n_nodes_2d(p, val);"

Definition at line 400 of file p_bases.py.

◆ dfunc

str p_bases.dfunc
Initial value:
1= "void p_" + str(order) + "_basis_grad_value" + suffix + \
2 "(const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)"

Definition at line 387 of file p_bases.py.

◆ dims

list p_bases.dims = [2, 3]

Definition at line 176 of file p_bases.py.

◆ dunique_fun

str p_bases.dunique_fun
Initial value:
1= "void p_grad_basis_value" + suffix + \
2 "(const int p, const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)"

Definition at line 197 of file p_bases.py.

◆ fe

p_bases.fe = Lagrange(dim, order)

Definition at line 229 of file p_bases.py.

◆ func

str p_bases.func
Initial value:
1= "void p_" + str(order) + "_basis_value" + suffix + \
2 "(const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &result_0)"

Definition at line 385 of file p_bases.py.

◆ hpp

str p_bases.hpp = "#pragma once\n\n#include <Eigen/Dense>\n#include \"p_n_bases.hpp\"\n#include <cassert>\n\n"

Definition at line 185 of file p_bases.py.

◆ indices

list p_bases.indices = []

Definition at line 232 of file p_bases.py.

◆ N

p_bases.N

Definition at line 222 of file p_bases.py.

◆ nbf

p_bases.nbf

Definition at line 220 of file p_bases.py.

◆ nn

p_bases.nn = max(0, order - 2)

Definition at line 315 of file p_bases.py.

◆ nodes

str p_bases.nodes
Initial value:
1= "void p_" + str(order) + "_nodes" + suffix + "(Eigen::MatrixXd &res) {\n res.resize(" + str(
2 len(indices)) + ", " + str(dim) + "); res << \n"

Definition at line 372 of file p_bases.py.

◆ norm

int p_bases.norm = 0

Definition at line 238 of file p_bases.py.

◆ npts

p_bases.npts = int(nn * (nn + 1) / 2)

Definition at line 316 of file p_bases.py.

◆ orders

list p_bases.orders = [0, 1, 2, 3, 4]

Definition at line 178 of file p_bases.py.

◆ path

p_bases.path = os.path.abspath(args.output)

Definition at line 456 of file p_bases.py.

◆ points

p_bases.points

Definition at line 225 of file p_bases.py.

◆ real_index

list p_bases.real_index = indices[i]

Definition at line 417 of file p_bases.py.

◆ reverse

p_bases.reverse

Definition at line 364 of file p_bases.py.

◆ suffix

str p_bases.suffix = 2 else "_3d"

Definition at line 190 of file p_bases.py.

◆ tmp

list p_bases.tmp = []

Definition at line 339 of file p_bases.py.

◆ unique_fun

str p_bases.unique_fun
Initial value:
1= "void p_basis_value" + suffix + \
2 "(const int p, const int local_index, const Eigen::MatrixXd &uv, Eigen::MatrixXd &val)"

Definition at line 195 of file p_bases.py.

◆ unique_nodes

str p_bases.unique_nodes
Initial value:
1= "void p_nodes" + suffix + \
2 "(const int p, Eigen::MatrixXd &val)"

Definition at line 192 of file p_bases.py.

◆ vertices

list p_bases.vertices = [[0, 0], [1, 0], [0, 1]]

Definition at line 211 of file p_bases.py.

◆ vv

list p_bases.vv = vertices[i]

Definition at line 236 of file p_bases.py.

◆ x

p_bases.x

Definition at line 11 of file p_bases.py.

◆ y

p_bases.y

Definition at line 11 of file p_bases.py.

◆ z

p_bases.z

Definition at line 11 of file p_bases.py.