SyFi 0.3
|
Functions | |
def | constant_scalar |
def | L2_scalar |
def | H1_semi_scalar |
def | H1_scalar |
def | constant_vector |
def | constant_source_vector |
def | source_vector |
def | load_vector |
def | constant_matrix |
def | mass_matrix |
def | mass_with_c_matrix |
def | stiffness_matrix |
def | stiffness_with_M_matrix |
def | mass_boundary_matrix |
def | check |
def | form_name |
Variables | |
list | scalar_forms = [constant_scalar, L2_scalar, H1_semi_scalar, H1_scalar] |
list | vector_forms = [constant_vector, constant_source_vector, source_vector] |
list | matrix_forms = [constant_matrix, mass_matrix, mass_with_c_matrix, stiffness_matrix, stiffness_with_M_matrix] |
tuple | args = set(sys.argv[1:]) |
string | print_forms = "p" |
string | generate = "g" |
string | compile = "c" |
int | quad_order = 3 |
int | formcount = 0 |
dictionary | polygon = { 2: "triangle", 3: "tetrahedron" } |
tuple | fe0 = FiniteElement("P0", polygon, 0) |
tuple | fe1 = FiniteElement("Lagrange", polygon, 1) |
tuple | fe2 = FiniteElement("Lagrange", polygon, 2) |
list | scalar_elements = [fe0, fe1, fe2] |
tuple | vfe0 = VectorElement("P0", polygon, 0) |
tuple | vfe1 = VectorElement("Lagrange", polygon, 1) |
tuple | vfe2 = VectorElement("Lagrange", polygon, 2) |
list | vector_elements = [vfe0, vfe1, vfe2] |
tuple | tfe0 = TensorElement("P0", polygon, 0) |
tuple | tfe1 = TensorElement("Lagrange", polygon, 1) |
tuple | tfe2 = TensorElement("Lagrange", polygon, 2) |
list | tensor_elements = [tfe0, tfe1, tfe2] |
all_elements = scalar_elements+vector_elements+tensor_elements | |
dictionary | options = { "symbolic": symbolic, "quad_order": quad_order } |
callback = L2_scalar | |
list | basisfunctions = [] |
list | coefficients = [Function(fe)] |
tuple | form = Form(name=form_name(callback), basisfunctions=basisfunctions, coefficients=coefficients, cell_integrands=[callback], options=options) |
def sfc_callbacks::callback_forms::check | ( | form | ) |
Definition at line 116 of file callback_forms.py.
00117 : 00118 form.sanity_check() 00119 if print_forms: 00120 print form 00121 if generate or compile: 00122 if compile: 00123 compiled_form = compile_form(form) 00124 print "Successfully compiled form:" 00125 print compiled_form 00126 print dir(compiled_form) 00127 else: 00128 res = write_ufc_code(form) 00129 print "Successfully generated form code:" 00130 print res
def sfc_callbacks::callback_forms::constant_matrix | ( | v, | |
u, | |||
itg | |||
) |
a(v, u; ) = \int 1 dx
Definition at line 64 of file callback_forms.py.
def sfc_callbacks::callback_forms::constant_scalar | ( | itg | ) |
a(;) = \int 1 dx
Definition at line 12 of file callback_forms.py.
def sfc_callbacks::callback_forms::constant_source_vector | ( | v, | |
itg | |||
) |
a(v;) = \int v dx
Definition at line 42 of file callback_forms.py.
def sfc_callbacks::callback_forms::constant_vector | ( | v, | |
itg | |||
) |
a(v;) = \int 1 dx
Definition at line 38 of file callback_forms.py.
def sfc_callbacks::callback_forms::form_name | ( | callback | ) |
Definition at line 134 of file callback_forms.py.
def sfc_callbacks::callback_forms::H1_scalar | ( | w, | |
itg | |||
) |
a(;w) = \int w^2 + grad(w)^2 dx
Definition at line 26 of file callback_forms.py.
def sfc_callbacks::callback_forms::H1_semi_scalar | ( | w, | |
itg | |||
) |
a(;w) = \int grad(w)^2 dx
Definition at line 20 of file callback_forms.py.
def sfc_callbacks::callback_forms::L2_scalar | ( | w, | |
itg | |||
) |
a(;w) = \int w^2 dx
Definition at line 16 of file callback_forms.py.
def sfc_callbacks::callback_forms::load_vector | ( | v, | |
t, | |||
itg | |||
) |
a(v; t) = \int t . v dx
Definition at line 57 of file callback_forms.py.
def sfc_callbacks::callback_forms::mass_boundary_matrix | ( | v, | |
u, | |||
itg | |||
) |
a(v, u; ) = \int u . v ds
Definition at line 94 of file callback_forms.py.
def sfc_callbacks::callback_forms::mass_matrix | ( | v, | |
u, | |||
itg | |||
) |
a(v, u; ) = \int u . v dx
Definition at line 68 of file callback_forms.py.
def sfc_callbacks::callback_forms::mass_with_c_matrix | ( | v, | |
u, | |||
c, | |||
itg | |||
) |
a(v, u; c) = \int c (u . v) dx
Definition at line 72 of file callback_forms.py.
def sfc_callbacks::callback_forms::source_vector | ( | v, | |
f, | |||
itg | |||
) |
a(v; f) = \int f . v dx
Definition at line 46 of file callback_forms.py.
def sfc_callbacks::callback_forms::stiffness_matrix | ( | v, | |
u, | |||
itg | |||
) |
Definition at line 76 of file callback_forms.py.
def sfc_callbacks::callback_forms::stiffness_with_M_matrix | ( | v, | |
u, | |||
M, | |||
itg | |||
) |
Definition at line 82 of file callback_forms.py.
Definition at line 164 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::args = set(sys.argv[1:]) |
Definition at line 110 of file callback_forms.py.
Definition at line 179 of file callback_forms.py.
sfc_callbacks::callback_forms::callback = L2_scalar |
Definition at line 178 of file callback_forms.py.
list sfc_callbacks::callback_forms::coefficients = [Function(fe)] |
Definition at line 180 of file callback_forms.py.
string sfc_callbacks::callback_forms::compile = "c" |
Definition at line 114 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::fe0 = FiniteElement("P0", polygon, 0) |
Definition at line 144 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::fe1 = FiniteElement("Lagrange", polygon, 1) |
Definition at line 145 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::fe2 = FiniteElement("Lagrange", polygon, 2) |
Definition at line 146 of file callback_forms.py.
Referenced by check_CrouzeixRaviart(), and main().
tuple sfc_callbacks::callback_forms::form = Form(name=form_name(callback), basisfunctions=basisfunctions, coefficients=coefficients, cell_integrands=[callback], options=options) |
Definition at line 181 of file callback_forms.py.
Definition at line 133 of file callback_forms.py.
string sfc_callbacks::callback_forms::generate = "g" |
Definition at line 113 of file callback_forms.py.
list sfc_callbacks::callback_forms::matrix_forms = [constant_matrix, mass_matrix, mass_with_c_matrix, stiffness_matrix, stiffness_with_M_matrix] |
Definition at line 88 of file callback_forms.py.
dictionary sfc_callbacks::callback_forms::options = { "symbolic": symbolic, "quad_order": quad_order } |
Definition at line 170 of file callback_forms.py.
dictionary sfc_callbacks::callback_forms::polygon = { 2: "triangle", 3: "tetrahedron" } |
Definition at line 141 of file callback_forms.py.
string sfc_callbacks::callback_forms::print_forms = "p" |
Definition at line 112 of file callback_forms.py.
Definition at line 131 of file callback_forms.py.
list sfc_callbacks::callback_forms::scalar_elements = [fe0, fe1, fe2] |
Definition at line 147 of file callback_forms.py.
list sfc_callbacks::callback_forms::scalar_forms = [constant_scalar, L2_scalar, H1_semi_scalar, H1_scalar] |
Definition at line 32 of file callback_forms.py.
Definition at line 157 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::tfe0 = TensorElement("P0", polygon, 0) |
Definition at line 154 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::tfe1 = TensorElement("Lagrange", polygon, 1) |
Definition at line 155 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::tfe2 = TensorElement("Lagrange", polygon, 2) |
Definition at line 156 of file callback_forms.py.
Definition at line 152 of file callback_forms.py.
list sfc_callbacks::callback_forms::vector_forms = [constant_vector, constant_source_vector, source_vector] |
Definition at line 51 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::vfe0 = VectorElement("P0", polygon, 0) |
Definition at line 149 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::vfe1 = VectorElement("Lagrange", polygon, 1) |
Definition at line 150 of file callback_forms.py.
tuple sfc_callbacks::callback_forms::vfe2 = VectorElement("Lagrange", polygon, 2) |
Definition at line 151 of file callback_forms.py.