I try to run a Functional Mock-up Interface (FMI) Co-simulation in CFX. My Functional Mock-up Unit (FMU) specifies units for the input and output variables, but CFX sees them as unitless. What is the reason for this and is there a workaround?
Tagged: 2019 R2, cfx, fluid-dynamics, FMU, General - CFX
-
-
March 17, 2023 at 8:57 am
FAQParticipantIf your FMU is written in Modelica, it will probably specify units for the input and output variables, e.g., like this on the Modelica side: Modelica.Blocks.Interfaces.RealInput InputA(unit=”W/m2″) which will be translated to something like the following in the .xml file of the FMU:
Due to a known issue with its internal FMU library, CFX will not carry over the units of such variables correctly in versions up to CFX 2019 R2 and thus the variables are shown and treated as unitless. In Release 2019 R3, the issue will be corrected and the variables will carry the units that have been specified on the Modelica side. As a workaround, you can make the value that CFX passes to the FMU “artificially” unitless by multiplying them with the reciprocal value of its unit. For the example above, InputA corresponds to a heat flux with unit [W m^-2], so you need to multiply the value that is computed by CFX with 1 [m^2 W^-1], e.g. like this: LIBRARY: CEL: &replace FUNCTION: myFMU FMU File Name = D:/myPath/myFMU.fmu FMUI Function = True Option = Functional Mockup Unit Instance ARGUMENT VALUE: InputA Expression Value = areaAve(Wall Heat Flux)@WallA*1[m^2 W^-1] Result Units = [] Value Name = InputA END END END END
-
Introducing Ansys Electronics Desktop on Ansys Cloud
The Watch & Learn video article provides an overview of cloud computing from Electronics Desktop and details the product licenses and subscriptions to ANSYS Cloud Service that are...
How to Create a Reflector for a Center High-Mounted Stop Lamp (CHMSL)
This video article demonstrates how to create a reflector for a center high-mounted stop lamp. Optical Part design in Ansys SPEOS enables the design and validation of multiple...
Introducing the GEKO Turbulence Model in Ansys Fluent
The GEKO (GEneralized K-Omega) turbulence model offers a flexible, robust, general-purpose approach to RANS turbulence modeling. Introducing 2 videos: Part 1 provides background information on the model and a...
Postprocessing on Ansys EnSight
This video demonstrates exporting data from Fluent in EnSight Case Gold format, and it reviews the basic postprocessing capabilities of EnSight.
- How to overcome the model information incompatible with incoming mesh error?
- Is there a way to get the volume of a register using expression ?
- Skewness in ANSYS Meshing
- What are the requirements for an axisymmetric analysis?
- What are pressure-based solver vs. density-based solver in FLUENT?
- How to create and execute a FLUENT journal file?
- How to get information about mesh cell count and cell types in Fluent?
- What is a .wbpz file and how can I use it?
- How can I Export and import boxes / Systems from one Workbench Project to another?
- ANSYS Fluent: Introduction to the GEKO Turbulence Model Part I
© 2025 Copyright ANSYS, Inc. All rights reserved.