24#ifndef _PCB_CALCULATOR_SETTINGS_H
25#define _PCB_CALCULATOR_SETTINGS_H
28#include <unordered_map>
32#define DEFAULT_REGULATOR_RESTOL "1"
33#define DEFAULT_REGULATOR_R1 "0.240"
34#define DEFAULT_REGULATOR_R2 "0.720"
35#define DEFAULT_REGULATOR_VREF_MIN "1.20"
36#define DEFAULT_REGULATOR_VREF_TYP "1.25"
37#define DEFAULT_REGULATOR_VREF_MAX "1.30"
38#define DEFAULT_REGULATOR_VOUT_TYP "5"
39#define DEFAULT_REGULATOR_IADJ_TYP "50"
40#define DEFAULT_REGULATOR_IADJ_MAX "100"
APP_SETTINGS_BASE(const std::string &aFilename, int aSchemaVersion)
std::map< std::string, double > TL_PARAM_MAP
Map of TRANSLINE_PRM id to value.
PCB_CALCULATOR_SETTINGS()
virtual ~PCB_CALCULATOR_SETTINGS()
CORROSION_TABLE m_CorrosionTable
TRANSMISSION_LINE m_TransLine
ATTENUATORS m_Attenuators
virtual std::string getLegacyFrameName() const override
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
std::map< std::string, int > TL_PARAM_UNITS_MAP
Map of TRANSLINE_PRM id to units selection.
std::unordered_map< std::string, ATTENUATOR > attenuators
wxString conductorTemperature
wxString conductorMaterialResitivity
wxString conductorThermalCoef
wxString threshold_voltage
double iec60664_RMSvoltage
int iec60664_materialGroup
int iec60664_insulationType
double iec60664_transientOV
double iec60664_ratedVoltage
int iec60664_pollutionDegree
wxString selected_regulator
int int_track_width_units
wxString int_track_thickness
int int_track_thickness_units
int ext_track_thickness_units
int ext_track_width_units
wxString ext_track_thickness
int soldermask_fills_gaps
CPW / CBCPW only.
int soldermask_present
Soldermask / LPI overlay correction.
double soldermask_epsilonr
Mask relative permittivity. 3.5 is representative of green LPI.
int spec_frequency_unit
UNIT_SELECTOR_FREQUENCY index: 0 = GHz, 1 = MHz, 2 = kHz, 3 = Hz.
std::map< std::string, TL_PARAM_MAP > param_values
Transline parameters, per transline type.
int dielectric_model
Dielectric dispersion model. 0 = CONSTANT (default), 1 = Djordjevic-Sarkar causal.
wxString spec_frequency
Spec frequency at which EpsilonR and TanD are specified (user-entered text).
double soldermask_thickness
Cured mask thickness in metres. 20 um is typical for modern green LPI.
double soldermask_tand
Mask loss tangent.
std::map< std::string, TL_PARAM_UNITS_MAP > param_units
Transline parameter units selections, per transline type.
int characteristic_impedance_units
wxString characteristic_impedance
wxString plating_resistivity
wxString clearance_diameter
int clearance_diameter_units