Welcome to the TRNSYS Users Forum.
The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.
Some tips for success on using the forum:
- Follow the Forum Rules posted in Forum Administration.
- There are categories for different types of topics and questions. Post your topic or question into the proper category.
- Before posting a topic or question search the existing topics (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
- Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
- State the version of TRNSYS and which add-ons your are using.
- Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
- Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
- Moderators may edit your post for clarity or move your topic to a more appropriate category.
I'm working on TRNSYS 18, I created a Heat exchanger connected with cool prop and it works well, after making a compression system with intercooler, with correct results, I added another heat exchanger without connecting it to the compression system, and i run the system, but the results of the compression system changed by 30 C at least, when I delete the new HX the results were correct, I also copy all the system in empty project and it's still the same, it's weird how the values changed by just adding a component without connecting it!
It sounds like you have a variable somewhere in your code that is being used on a call to the Type before it is defined on that call; when that happens, the variable retains its prior value (if any) from the last time the Type was called. This commonly works okay with a single instance of the Type (though it's still not a best practice), but breaks down when there are multiple instances. The first thing I would check is that your component includes an If GetIsParameterReread() section; this section resets the parameters when multiple instances of a Type are in a simulation. I would also check that any calculations based on those parameters (such as an area calculated from length and width parameters) are re-calculated as well, either in the parameter re-read section or the iterative call section. Otherwise, when there are multiple instances of a Type, the variables last assigned or calculated when Unit A of Type X was called will be used when Unit B of Type X is called as well. Good luck!
@gehadrabee24 I agree, you shouldn't see results change just from adding a component and not connecting it to any other part of your simulation. That's usually a sign that there's a bug in the source code of that Type. What Type number are you using for the heat exchanger? I can do some digging and see if I can find the issue. You can also of course email your TRNSYS distributor for technical support when you find a bug like that.
It's a Type I created, Type 7611, do you want me to send it? here is the source code