32 std::string position =
"";
42 return fmt::format(
".model {} potentiometer( r={} position={} )\n", aItem.
modelName, r,
46 return fmt::format(
".model {} potentiometer( r={} )\n", aItem.
modelName, r );
52 return fmt::format(
"altermod @{}[position]={:g}",
70 std::vector<PARAM::INFO> paramInfos;
79 paramInfos.push_back( paramInfo );
81 paramInfo.
name =
"pos";
87 paramInfos.push_back( paramInfo );
static const std::vector< PARAM::INFO > makeParamInfos()
void AddParam(const PARAM::INFO &aInfo)
const SPICE_GENERATOR & SpiceGenerator() const
const PARAM * FindParam(const std::string &aParamName) const
static std::string ToSpice(const std::string &aString)
std::string ModelLine(const SPICE_ITEM &aItem) const override
std::string TunerCommand(const SPICE_ITEM &aItem, double aValue) const override
virtual std::string ItemName(const SPICE_ITEM &aItem) const
const SIM_MODEL & m_model