-
-
August 26, 2021 at 9:00 am
Timothy
SubscriberAnsys Electronics Desktop 2021R1 (Icepak)
I am trying to optimize a design by varying the size and number of fins along a plate by patterning blocks along the length.
I would get an error if the number has decimals.
I cant figure out how to write an expression or use the IF statement to arrive at the nearest whole number below the calculated FinNumber.
August 26, 2021 at 10:49 amPraneeth
Ansys Employee
You can use int() or nint() for the integer truncated value or the nearest integer values in your expression.
You have to use "==" instead of "=" for using in if function.
For more information on this please refer "Defining an Expression" in the HFSS help document.
All the very best.
Viewing 1 reply thread- The topic ‘Cant figure out how to round down a variable to the nearest whole number’ is closed to new replies.
Innovation SpaceTrending discussions- Three-Phase Voltage Imbalances in dual stator electric generator
- Link the Circuit to 3D Terminals
- Magnetic Dipole moment calculation
- Core Loss in ANSYS MAXWELL Eddy Current solution
- exporting and importing my Netlist for my external circuit
- Error of Metal Fraction in Icepak Classic.
- The unit of theta in Is*sin(2*pi*fre*Time+theta-2*pi/3)
- simplorer-maxwell
Top Contributors-
4633
-
1535
-
1386
-
1215
-
1021
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.
