Skip to content

VSWR calculations gives negative values. VSWR cannot be negative.  #24

@mike6000

Description

@mike6000

VSWR can go negative. The correct way to calculate VSWR is: VSWR= (1 + | Γ |)/(1 - | Γ |)
In the code below, the absolute value operators are not included so the VSWR looks like can be negative.
https://github.com/tmolteno/python-necpp/blob/03713c8a53e6114db5ba5a7a4e49601f213e4500/PyNEC/example/antenna_util.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions