Closed XueJingru closed 1 year ago
Hi @XueJingru - apologies, but I am lacking the time right now to look in detail into your long script. I do have the impression though that what you are trying to do could be achieved much simpler.
Could you maybe make a drawing or a sketch of the layout you are trying to model? That would help to understand your setup.
The sources I want to calculate is shown in the png. I just want to know whether these electric line sources have current direction or the result of empymod.bipole
function is the just the intergration of the result of empymod.dipole
along the line.
That looks super interesting! Although I fear it might be difficult to model with empymod, but not impossible. But you have to take care that the transforms do not incur any artefacts. Particularly, you use very early times (1e-5 to 1e-2 s), which requires high frequencies for the transforms. You might need a bandpass filter for it to properly work, see, e.g., https://empymod.emsig.xyz/en/stable/gallery/tdomain/tem_walktem.html
empymod.bipole
is simply doing a Gaussian Quadrature over empymod.dipole
.
However, even a dipole has a direction, and so das bipole. You can test that with the following script:
import empymod
model = {'rec': [1000, 0, 0, 0, 0], 'depth': [0, 100], 'res': [1, 100, 3], 'freqtime': 1, 'verb': 1}
bip1 = empymod.bipole(src=[0, 100, 0, 0, 0, 0], **model)
bip2 = empymod.bipole(src=[100, 0, 0, 0, 0, 0], **model)
print(bip1, bip2)
The result is
(2.0351810723580752e-10-4.254477006114425e-11j) (-2.0351810723580752e-10+4.254477006114425e-11j)
so you see the result differ by a factor -1
, which comes from the direction.
Thanks very much for your guidance during your busy time.
I hope it helps. I close this issue, if there are still open points you would like to get help feel free to re-open it.
As far as I know, the function "empymod.bipole" can work as a current line source whose result is as a intergration of "nums= scripts" dipoles' results. Does the line current have a propagation direction or can I adjust the propogation by modify the code or any parameters. My code is below and I wonder whether the part of sources above the surface make sense for final results.