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.

Notifications
Clear all

I have a question regarding how to create an equation in the TRNSYS environment for heat pump type 668 to ensure that it operates for no more than 2 hours continuously and includes a minimum rest period of 30 minutes before it can be restarted?

1 Posts
2 Users
0 Reactions
51 Views
0
Topic starter
I have a question regarding how to create an equation in the TRNSYS environment for heat pump type 668 to ensure that it operates for no more than 2 hours continuously and includes a minimum rest period of 30 minutes before it can be restarted?
best regards
1 Answer
0

@jinan There is a component in the TESS Controllers library that will do something very similar to what you described. Type 1233, Thermostatic Control with Specified Run Time, will set a control signal off of a thermostat input that runs for a user-specified minimum time and includes a minimum reset period before it can be restarted. The only difference from what you described is that Type 1233 runs the equipment for a minimum continuous period, not a maximum period. You could modify the source code of the Type to make the user-specified minimum time a maximum time instead, or you could use the trip timer (Type 1504, also in the TESS Controllers library) to monitor the length of time the equipment has been on, and use an equation block to connect a lockout signal to Type 1233 when the run time reaches the desired threshold.

Writing controls in equation blocks is difficult for a couple of reasons. For one, controllers usually make decisions based on the prior state from one or more past timesteps. Those can be recalled from a Type like Type 661 (Delayed Inputs, also in the TESS Controllers library), but can't be stored or accumulated directly within the equation block. Controllers also sometimes oscillate between 'on' and 'off' states multiple times before the solution for a timestep reaches convergence. (Imagine a tank is too cold, so a controller signals a heater to heat the tank, but the heating rate is such that the tank then overheats on that timestep, which signals the controller to turn the heater off, and the cycle repeats). Most TRNSYS controllers have a 'Number of oscillations permitted' parameter that limits how many times a controller may do this before its state is 'stuck' for the timestep, which records the condition in the .lst file and allows the simulation to continue. Equation blocks do not have the capability to 'stick' a controller based on an iterative state, so an oscillating controller in an equation block will eventually lead to convergence problems in the simulation instead.

Share: