get_fields_at_coordinates¶
Description¶
Interpolate field values at given points
Usage example¶
Suppose you want to accurately determine the electric field at a set of positions. The electric fields are in a mesh called ernie_TDCS_1_scalar.msh
Write the positions (x, y, z) where you want to sample the fields to a CSV file, as in
this example
Run
get_fields_at_coordinates -s positions.csv -m ernie_TDCS_1_scalar.msh
This will output one file CSV for each field in the mesh, named for example positions_E.csv, positions_magnE.csv, … These files contain the fields (or field vectors) at each sampling position.
Further notes¶
Type
get_fields_at_coordinates -h
for more information and options