feec.multipatch.utils_conga_2d#

Functions#

P0_phys(f_phys, P0, domain, mappings_list)

P1_phys(f_phys, P1, domain, mappings_list)

P2_phys(f_phys, P2, domain, mappings_list)

P_phys_h1(f_phys, P0, domain, mappings_list)

P_phys_hcurl(f_phys, P1, domain, mappings_list)

P_phys_hdiv(f_phys, P1, domain, mappings_list)

P_phys_l2(f_phys, P2, domain, mappings_list)

get_Vh_diags_for([v, v_ref, M_m, ...])

v, v_ref: FemField M_m: mass matrix in scipy format

get_kind([space])

write_diags_to_file(diags, script_filename, ...)

write diagnostics to file

Classes#

Inheritance diagram of psydac.feec.multipatch.utils_conga_2d

DiagGrid([mappings, N_diag])

Class storing:

Details#

P0_phys(f_phys, P0, domain, mappings_list)[source]#
P1_phys(f_phys, P1, domain, mappings_list)[source]#
P2_phys(f_phys, P2, domain, mappings_list)[source]#
P_phys_h1(f_phys, P0, domain, mappings_list)[source]#
P_phys_hcurl(f_phys, P1, domain, mappings_list)[source]#
P_phys_hdiv(f_phys, P1, domain, mappings_list)[source]#
P_phys_l2(f_phys, P2, domain, mappings_list)[source]#
get_kind(space='V*')[source]#
class DiagGrid(mappings=None, N_diag=None)[source]#

Bases: object

Class storing:
  • a diagnostic cell-centered grid

  • writing / quadrature utilities

  • a ref solution

to compare solutions from different FEM spaces on same domain

grid_vals_h1(v)[source]#
grid_vals_hcurl(v)[source]#
create_ref_fem_spaces(domain=None, ref_nc=None, ref_deg=None)[source]#
import_ref_sol_from_coeffs(sol_ref_filename=None, space='V*')[source]#
write_sol_values(v, space='V*')[source]#

v: FEM field

write_sol_ref_values(v=None, space='V*')[source]#

if no FemField v is provided, then use the self.sol_ref (must have been imported)

compute_l2_error(space='V*')[source]#
get_diags_for(v, space='V*', print_diags=True)[source]#
get_Vh_diags_for(v=None, v_ref=None, M_m=None, print_diags=True, msg='error between ?? and ?? in Vh')[source]#

v, v_ref: FemField M_m: mass matrix in scipy format

write_diags_to_file(diags, script_filename, diag_filename, params=None)[source]#

write diagnostics to file