October 20, 2020 at 6:49 pmalimuradpashaSubscriber
I model a pump in ANSYS Twin Builder 2020 R2.4 with Modelica. I want to specify if time derivative of fluid volume, in which fluid is compressed, is greater than 0, low pressure valve is open and high pressure valve is closed.If derivative is smaller than zero, low pressure valve is closed and high pressure valve is open. I wrote a code which specifies this function. But I need to give this information to valve with connector. Valve has a connector which is named opening. When I try to compile my code, it throws an error which says "Hochdruckreiniger2, Line 28 : Unexpected token: opening_NP" How can I connect this information with connector named opening? I would really appreciate your helps. Thanks in advance!November 2, 2020 at 2:08 pmJose Luis Gonzalez HernandezAnsys EmployeeInside Twin Builder, you can access Modelica examples for the different libraries, you view the diagram and Modelica text for the examples. Also, there are some examples that include user defined equations as well as the definition of initial equations. n Unfortunately, a full answer to this question is beyond the scope of Ansys employees. Hopefully another member can help you.nNovember 3, 2020 at 7:38 pmdheerajvemulaAnsys EmployeeHi,If you are trying to use the opening_NP as a connector to connect to the valves you need to define it as a separate component. Currently, you have defined opening_NP as a real variable in your model. You can try adding a Modelica.Block.Sources.RealExpression and connecting it to the valves. The RealExpression has an output signal y - you can assign the value you like to this signal and connect it to the valves.nViewing 2 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.Trending discussions
- Changing of font size
- System Coupling
- ansys with matlab
- ANSYS Workbench Mechanical Solver problem after saving
- Error message “Solver pivot warning” due to element birth and death
- 3D ROM in workbench
- ANSYS Direct Optimization
- HARDWARE COMPATIBILITY
- System Coupling
- When I open the Electronic Desktop, Twin Builder auto opens
Top Rated Tags
© 2022 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.