GunnsBasicSource - nasa/gunns GitHub Wiki
This link implements the Source effect to force a given flow rate between two nodes in a basic network. Flow can go in either direction. It is a two-port link, and positive flow direction is defined going from Port 0 to Port 1, and negative flow goes from Port 1 to Port 0.
The flow rate is usually set from another model or the user. A blockage malfunction can scale down the given flow rate.
Care must be used with this link, as it forces flow between the network regardless of the network’s capacity to supply or receive that flow, and large potential spikes and network instability can result.
This link can be connected between any two nodes, similar to GunnsBasicConductor. It can also be moved in run-time via the Link Dynamic Node Mapping.
- Port 0 and 1 cannot connect to the same non-Ground node.
This illustrates the various valid and invalid ways to connect this link to nodes:
These are extra rules you should always try to follow:
- N/A
This link has no configuration data.
- malfBlockageFlag (default = false): Initial active (true) or inactive (false) state of the blockage malfunction.
- malfBlockageValue (default = 0.0, must be [0-1]): Initial value of the blockage malfunction. A value of 1 completely blocks all flow, and a value of zero has no effect.
- sourceFlux (default = 0.0): This is the initial flow rate.
- N/A.
- N/A