你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Added a check and docs for ensuring resistance of the transmission line can't exceed that of free space, i.e. 376.73 Ohms, otherwise the model is not valid.
这个提交包含在:
@@ -776,7 +776,7 @@ For example, to specify a y directed voltage source with an internal resistance
|
||||
#transmission_line:
|
||||
-------------------
|
||||
|
||||
Allows you to introduce a one-dimensional transmission line model [MAL1994]_ at an electric field location. The transmission line has a specified resistance. It is useful for exciting antennas when the physical properties of the antenna are included in the model. The syntax of the command is:
|
||||
Allows you to introduce a one-dimensional transmission line model [MAL1994]_ at an electric field location. The transmission line can have a specified resistance greater than zero and less than the impedance of free space (376.73 Ohms). It is useful for exciting antennas when the physical properties of the antenna are included in the model. The syntax of the command is:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
@@ -784,7 +784,7 @@ Allows you to introduce a one-dimensional transmission line model [MAL1994]_ at
|
||||
|
||||
* ``c1`` is the polarisation of the transmission line and can be ``x``, ``y``, or ``z``.
|
||||
* ``f1 f2 f3`` are the coordinates (x,y,z) of the transmission line in the model.
|
||||
* ``f4`` is the characteristic resistance of the transmission line source in Ohms.
|
||||
* ``f4`` is the characteristic resistance of the transmission line source in Ohms. It can be any value greater than zero and less than the impedance of free space (376.73 Ohms).
|
||||
* ``f5 f6`` are optional parameters. ``f5`` is a time delay in starting the excitation of the transmission line. ``f6`` is a time to remove the excitation of the transmission line. If the time window is longer than the excitation of the transmission line removal time then the excitation of the transmission line will stop after the excitation of the transmission line removal time. If the excitation of the transmission line removal time is longer than the time window then the excitation of the transmission line will be active for the entire time window. If ``f5 f6`` are omitted the excitation of the transmission line will start at the beginning of time window and stop at the end of the time window.
|
||||
* ``str1`` is the identifier of the waveform that should be used with the source.
|
||||
|
||||
|
@@ -265,8 +265,8 @@ def process_multicmds(multicmds, G):
|
||||
raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' z-coordinate is not within the model domain')
|
||||
if positionx < G.pmlthickness[0] or positionx > G.nx - G.pmlthickness[3] or positiony < G.pmlthickness[1] or positiony > G.ny - G.pmlthickness[4] or positionz < G.pmlthickness[2] or positionz > G.nz - G.pmlthickness[5]:
|
||||
print("WARNING: '" + cmdname + ': ' + ' '.join(tmp) + "'" + ' sources and receivers should not normally be positioned within the PML.')
|
||||
if resistance <= 0:
|
||||
raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' requires a resistance greater than zero')
|
||||
if resistance <= 0 or resistance > 376.7:
|
||||
raise CmdInputError("'" + cmdname + ': ' + ' '.join(tmp) + "'" + ' requires a resistance greater than zero and less than the impedance of free space, i.e. 376.73 Ohms')
|
||||
|
||||
# Check if there is a waveformID in the waveforms list
|
||||
if not any(x.ID == tmp[5] for x in G.waveforms):
|
||||
|
在新工单中引用
屏蔽一个用户