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, freq, src_pos, src_direc, src_current, src_length, sigma_background, sigma_file, nodes_file, elemsN_file, elemsE_file, edgesN_file, nnz_file, bEdges_file, receivers_file, dir_name)[source]

csem_modelling dictionary with main parameters for CSEM FM.

Parameters:
  • rank (int) – MPI rank.
  • 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.
  • 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.
  • bEdges_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.

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

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

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

Unitary test for modelling.py script.