modelling.py

Define the csem_modelling dictionary. csem_modelling dictionary contain the main initial parameters for a CSEM FM modelling such as: frequency, source position, conductivity model and mesh information.

petgem.base.modelling.CSEM_MODELLING(rank, nedelec_order, cuda, freq, src_pos, src_direc, src_current, src_length, sigma_background, sigma_file, nodes_file, elemsN_file, elemsF_file, facesN_file, elemsE_file, edgesN_file, nnz_file, boundaries_file, receivers_file, dir_name)[source]

csem_modelling dictionary with main parameters for CSEM FM.

Parameters:
  • rank (int) – MPI rank.
  • nedelec_order (int) – nedelec element order.
  • cuda (int) – flag for cuda support.
  • freq (int,float) – frequency.
  • src_pos (list) – source position.
  • src_dir (int,float) – source orientation.
  • src_current (int,float) – source current.
  • src_length (int,float) – source length.
  • sigma_background (int,float) – background conductivity.
  • sigma_file (str) – file name of conductivity model.
  • nodes_file (str) – file name of node spatial coordinates.
  • elemsN_file (str) – file name of elements-nodes connectivity.
  • elemsF_file (str) – file name of elements-faces connectivity.
  • facesN_file (str) – file name of faces-nodes connectivity.
  • elemsE_file (str) – file name of elements-edges connectivity.
  • edgesN_file (str) – file name of edges-nodes connectivity.
  • nnz_file (str) – file name of nnz for matrix allocation.
  • boundaries_file (str) – file name of boundary edges.
  • receivers_file (str) – file name or receivers position.
  • dir_name (str) – parent directory of sigma_file, nodes_file and elemsN_file.
Returns:

CSEM_MODELLING dictionary.

Return type:

python dictionary.

petgem.base.modelling.printModellingData(input_modelling)[source]

Print the content of a csem_modelling dictionary. :param dictionary: input_modelling. :return: None.

petgem.base.modelling.unitary_test()[source]

Unitary test for modelling.py script.