Class VoltageLoopRule
An implementation for a IAppliedVoltageRule. This class will check for voltage loops.
Inherited Members
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public class VoltageLoopRule : IAppliedVoltageRule, IRule
Properties
ViolationCount
Gets the number of violations of this rule.
Declaration
public int ViolationCount { get; }
Property Value
Type | Description |
---|---|
int | The violation count. |
Violations
Gets the rule violations.
Declaration
public IEnumerable<IRuleViolation> Violations { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IRuleViolation> | The rule violations. |
Methods
Fix(IRuleSubject, IVariable, IVariable)
Fixes the voltage difference between two node variables.
Declaration
public void Fix(IRuleSubject subject, IVariable a, IVariable b)
Parameters
Type | Name | Description |
---|---|---|
IRuleSubject | subject | The subject that applies to the rule. |
IVariable | a | The first variable. |
IVariable | b | The second variable. |
Reset()
Resets the rule.
Declaration
public void Reset()