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.
- 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