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

Classes

class  Lagrange
 
class  ReferenceSimplex
 

Functions

 create_point_set (order, nsd)
 
 parse_args ()
 

Variables

 x
 
 y
 
 z
 
 args = parse_args()
 
 path = os.path.abspath(args.output)
 
list dims = [2, 3]
 
list orders = [0, 1, 2, 3, -2]
 
str namev = f"auto_q_bases_{dim}d_val"
 
str namen = f"auto_q_bases_{dim}d_nodes"
 
str nameg = f"auto_q_bases_{dim}d_grad"
 
str cppv = f"#include \"{namev}.hpp\"\n\n\n"
 
str cppn = f"#include \"{namen}.hpp\"\n\n\n"
 
str cppg = f"#include \"{nameg}.hpp\"\n\n\n"
 
str eextern = ""
 
str hppv = "#pragma once\n\n#include <Eigen/Dense>\n#include <cassert>\n\n"
 
str hppn = "#pragma once\n\n#include <Eigen/Dense>\n#include <cassert>\n\n"
 
str hppg = "#pragma once\n\n#include <Eigen/Dense>\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], [1, 1], [0, 1]]
 
 nbf
 
 N
 
 points
 
tuple tmp
 
 fe = Lagrange(dim, order)
 
 current_indices = list(range(0, len(fe.points)))
 
list indices = []
 
list vv = vertices[i]
 
int norm = 0
 
 nn = max(0, abs(order) - 1)
 
 npts = int(nn * nn)
 
 reverse
 
int orderN = 0 else "m"+str(-order)
 
str nodes
 
str func
 
str dfunc
 
str base = "auto x=uv.col(0).array();\nauto y=uv.col(1).array();"
 
str dbase = base
 
list real_index = indices[i]
 
str tcppg = f"#include \"{nameg}.hpp\"\n\n\n"
 
str hpp = "#pragma once\n\n#include <Eigen/Dense>\n#include <cassert>\n\n"
 

Function Documentation

◆ create_point_set()

q_bases.create_point_set (   order,
  nsd 
)

Definition at line 38 of file q_bases.py.

Referenced by q_bases.Lagrange.compute_basis().

Here is the caller graph for this function:

◆ parse_args()

q_bases.parse_args ( )

Definition at line 128 of file q_bases.py.

Variable Documentation

◆ args

q_bases.args = parse_args()

Definition at line 137 of file q_bases.py.

◆ base

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

Definition at line 539 of file q_bases.py.

◆ cppg

str q_bases.cppg = f"#include \"{nameg}.hpp\"\n\n\n"

Definition at line 156 of file q_bases.py.

◆ cppn

str q_bases.cppn = f"#include \"{namen}.hpp\"\n\n\n"

Definition at line 152 of file q_bases.py.

◆ cppv

str q_bases.cppv = f"#include \"{namev}.hpp\"\n\n\n"

Definition at line 148 of file q_bases.py.

◆ current_indices

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

Definition at line 283 of file q_bases.py.

◆ dbase

str q_bases.dbase = base

Definition at line 543 of file q_bases.py.

◆ dfunc

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

Definition at line 526 of file q_bases.py.

◆ dims

list q_bases.dims = [2, 3]

Definition at line 140 of file q_bases.py.

◆ dunique_fun

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

Definition at line 181 of file q_bases.py.

◆ eextern

str q_bases.eextern = ""

Definition at line 162 of file q_bases.py.

◆ fe

q_bases.fe = Lagrange(dim, order)

Definition at line 281 of file q_bases.py.

◆ func

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

Definition at line 524 of file q_bases.py.

◆ hpp

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

Definition at line 631 of file q_bases.py.

◆ hppg

str q_bases.hppg = "#pragma once\n\n#include <Eigen/Dense>\n#include <cassert>\n\n"

Definition at line 170 of file q_bases.py.

◆ hppn

str q_bases.hppn = "#pragma once\n\n#include <Eigen/Dense>\n#include <cassert>\n\n"

Definition at line 167 of file q_bases.py.

◆ hppv

str q_bases.hppv = "#pragma once\n\n#include <Eigen/Dense>\n#include <cassert>\n\n"

Definition at line 164 of file q_bases.py.

◆ indices

list q_bases.indices = []

Definition at line 284 of file q_bases.py.

◆ N

q_bases.N

Definition at line 207 of file q_bases.py.

◆ nameg

str q_bases.nameg = f"auto_q_bases_{dim}d_grad"

Definition at line 146 of file q_bases.py.

◆ namen

str q_bases.namen = f"auto_q_bases_{dim}d_nodes"

Definition at line 145 of file q_bases.py.

◆ namev

str q_bases.namev = f"auto_q_bases_{dim}d_val"

Definition at line 144 of file q_bases.py.

◆ nbf

q_bases.nbf

Definition at line 205 of file q_bases.py.

◆ nn

q_bases.nn = max(0, abs(order) - 1)

Definition at line 433 of file q_bases.py.

◆ nodes

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

Definition at line 507 of file q_bases.py.

◆ norm

int q_bases.norm = 0

Definition at line 290 of file q_bases.py.

◆ npts

q_bases.npts = int(nn * nn)

Definition at line 434 of file q_bases.py.

◆ orderN

int q_bases.orderN = 0 else "m"+str(-order)

Definition at line 505 of file q_bases.py.

◆ orders

list q_bases.orders = [0, 1, 2, 3, -2]

Definition at line 141 of file q_bases.py.

◆ path

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

Definition at line 138 of file q_bases.py.

◆ points

q_bases.points

Definition at line 210 of file q_bases.py.

◆ real_index

list q_bases.real_index = indices[i]

Definition at line 554 of file q_bases.py.

◆ reverse

q_bases.reverse

Definition at line 446 of file q_bases.py.

◆ suffix

str q_bases.suffix = 2 else "_3d"

Definition at line 174 of file q_bases.py.

◆ tcppg

str q_bases.tcppg = f"#include \"{nameg}.hpp\"\n\n\n"

Definition at line 611 of file q_bases.py.

◆ tmp

list q_bases.tmp
Initial value:
1= (1/4*(2*x*xi_a-xi_a+1))*(2*eta_a*y -
2 eta_a+1)*(2*eta_a*y+2*x*xi_a-eta_a-xi_a-1)

Definition at line 222 of file q_bases.py.

◆ unique_fun

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

Definition at line 179 of file q_bases.py.

◆ unique_nodes

str q_bases.unique_nodes
Initial value:
1= "void q_nodes" + suffix + \
2 "(const int q, Eigen::MatrixXd &val)"

Definition at line 176 of file q_bases.py.

◆ vertices

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

Definition at line 195 of file q_bases.py.

◆ vv

list q_bases.vv = vertices[i]

Definition at line 288 of file q_bases.py.

◆ x

q_bases.x

Definition at line 10 of file q_bases.py.

◆ y

q_bases.y

Definition at line 10 of file q_bases.py.

◆ z

q_bases.z

Definition at line 10 of file q_bases.py.