The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hello,how to limit an attribute (numerical) value to a specified maximum ?If my attribute = 1.5 then my attribute = 1 Thanks
Hi,
you can use Generate Attributes for this. Something like
if(attribute=1.5,1,attribute)
should do it.
Best,
Martin
Thank you very much
@bibo59 You might consider making your expression a bit more flexible. Martin's solution works if the higher value is exactly 1.5, but not for other values. So instead you could use an if statement like this: if(attribute>1,1,attribute).
Or you could directly use the MIN function like this: min(1,attribute).
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…
Join us for a community conversation to explore how different modeling approaches in Simcenter PSIM can help engineers simulate power electronics systems while balancing accuracy, simulation speed, and design insight. What you'll learn: Power transistor modeling : Thermal and high fidelity models Protection component…