GunnsBasicPotential - nasa/gunns GitHub Wiki

GunnsBasicPotential

default_img

Background

This is the simplest potential source link for basic networks. It extends GunnsBasicConductor with the ability to create an additional potential difference between the nodes beyond the normal potential drop due to flow conductance. This potential is voltage in electrical networks or temperature in thermal networks. The total link potential rise from input to exit dp is the sum of the ideal potential source p_source and the potential drop due to flow conductivity (see GunnsBasicConductor) as:

dp = p_source - (w / G),

so it is important to keep in mind that there is always some potential drop from the ideal source potential whenever there is flow through the link.

How To Use in GunnsDraw

This link has the same connection rules as GunnsBasicConductor. Port 0 of the link is the negative terminal, and Port 1 is the positive terminal. Note, however that GunnsDraw doesn't force you to connect Port 0 and 1 to their corresponding '+' and '-' graphics, so flip or rotate the shape as needed to avoid confusion.

Port Connection Rules (These are limitations on the port connection to nodes that the link enforces in run-time):

Other Rules (These are extra rules you should always try to follow):

  • Same as GunnsBasicConductor.
  • It's always a good idea to keep 2 spare links in basic networks as a tuning & debugging aid.

Configuration Data Parameters:

  • defaultConductivity: Same as GunnsBasicConductor. In addition, the potential source has no effect if conductivity is zero. An "ideal" potential source can be modeled by setting conductivity to 1.0E+10.

Input Data Parameters:

  • malfBlockageFlag: Same as GunnsBasicConductor.
  • malfBlockageValue: Same as GunnsBasicConductor.
  • sourcePotential (default = 0.0 (--), and non-zero magnitudes should be kept between E-15 and E+15): This is the initial ideal source potential value, p_source. Positive values create a potential rise from port 0 to port 1, and negative values create a potential drop from port 0 to port 1. It is possible to create negative potentials in your network with this link.

Common Problems

  • N/A

References

  • N/A
⚠️ **GitHub.com Fallback** ⚠️