sfepy.tests.test_dg_terms_calls module

Test all terms in terms_dg. Performs numerical test on simple mesh.

class sfepy.tests.test_dg_terms_calls.DGTermTestEnvornment(dim, approx_order, **kwargs)[source]

Class for easy creation of all the data needed for testing terms.

burg_fun(u)[source]
burg_fun_d(u)[source]
prepare_materials(field, velo=1.0, diffusion=0.1, penalty=100)[source]

Crates material objects with data attribute, containing properly shaped data to pass to terms

Parameters:
  • field – DGField

  • velo – optional values for velocity a

  • diffusion – optional value for diffusion tensor D

  • penalty – optional value for diffusion penalty Cw

Returns:

a, D, Cw

prepare_variables(field)[source]

Prepares state and test variables, adds empty eq_map to state variable

Parameters:

field

Returns:

state, test

class sfepy.tests.test_dg_terms_calls.TestAdvectDGFluxTerm[source]
test_function_explicit_1D(dg_test_env)[source]
test_function_implicit_1D(dg_test_env)[source]
class sfepy.tests.test_dg_terms_calls.TestDiffusionDGFluxTerm[source]
test_function_explicit_left_1D(dg_test_env)[source]
test_function_explicit_right_1D(dg_test_env)[source]
test_function_implicit_left_1D(dg_test_env)[source]
test_function_implicit_right_1D(dg_test_env)[source]
class sfepy.tests.test_dg_terms_calls.TestDiffusionInteriorPenaltyTerm[source]
test_function_explicit_1D(dg_test_env)[source]
test_function_implicit_1D(dg_test_env)[source]
class sfepy.tests.test_dg_terms_calls.TestNonlinScalarDotGradTerm[source]
test_function_explicit_1D(dg_test_env)[source]
class sfepy.tests.test_dg_terms_calls.TestNonlinearHyperDGFluxTerm[source]
test_function_explicit_1D(dg_test_env)[source]
sfepy.tests.test_dg_terms_calls.dg_test_env(request)[source]