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

Psychrometric properties component (Type 33)

10 Posts
2 Users
0 Reactions
1,584 Views
0
Topic starter

Dear TRNSYS Users,

I hope this email finds you well.

I am reaching out to inquire about the acceptable range for the dry-bulb temperature in the Psychrometric Properties component (Type 33c or Type 33d). My understanding is that there might be specific limitations for this input, but I could not find detailed information in the documentation.
To investigate, I created a very simple project in TRNSYS consisting only of Type 33c or 33d. When I input a dry-bulb temperature value exceeding 100°C, I received the following error message: "floating point division by zero"

I would greatly appreciate any guidance on the following:

  1. What is the acceptable range for the dry-bulb temperature input for these components?
  2. Is there any way to extend or adjust this range if needed?
  3. Suggestions for resolving the "floating point division by zero" error when using high temperature values.

Thank you in advance for your support. I look forward to your insights.

Best regards,

Ali

9 Answers
0

Ali, @alish usually if you add Type33 to your project directly and call it with conditions outside of its intended range, it will write a warning to the list file, which you can check at the end of the simulation. A division by zero is an unintended situation that should be corrected in the code. Can you reply with the exact values of the conditions you are sending to Type33 so we can see if the divide by zero can be caught and remedied or at least if a clean error can be generated?

kind regards,

 David

 

0
Topic starter

Dear David,

Thank you for your email and for the clarification regarding Type33 behavior.

I used the default values in Type33 (both Type33c and Type33d):

  • Patm = 1
  • Relative Humidity = 60%
  • Humidity Ratio = 0.006

The only change I made was to Input#1, the dry bulb temperature. I increased it from the default value of 22°C to a value higher than 100°C (in my case, 101°C). When I ran the simulation with this input, I received the "floating point division by zero" error that I mentioned in my previous email.

Please let me know if you need any additional information or clarification.

Kind regards,
Ali

0

Ali, I should have asked which Trnsys release you are using. If you aren't sure, you can check by opening the file .\TrnsysXX\trnsys.ini with a text editor. I just tried that combination with the latest release (18.06.0002) and did not get a floating point error with the combination that you provided. Maybe this is something that has already been fixed.

kind regards,

 David 

0
Topic starter

Dear David,

I apologize for the delay in responding. Thank you for your guidance. I checked my TRNSYS version, and it is 18.03.0002.

Please let me know if you need any further details.

Kind regards,
Ali

DavidBradley 16/12/2024 3:08 pm

@alish now it is my turn to apologize for a delay in responding! I was able to confirm that I do get the floating point error when I use v18.03.0002 so I guess it is a bug that has been fixed. Minor version updates (18.03, 18.04, 18.05, etc.) are all free to users who have v18 so you should just be able to check with your distributor and get the update. If you don't know who to contact, please open your user18.id file with a text editor, copy the contents, and email the contents to techsupport@tess-inc.com. We can get you pointed to your distributor.
kind regards,
david

0
Topic starter

Hi David,

Thank you for confirming and for the detailed instructions. I will follow up with my distributor to get the update. If I encounter any issues, I’ll reach out as suggested.

Kind regards,
Ali

0
Topic starter

Hi David,

Regarding the issue I had, I reached out to techsupport@tess-inc.com. They suggested installing the latest version of TRNSYS (18.06.0002) to resolve the problem. I installed it, but I am still encountering the same issue. Specifically, with the following input combination sent to Type33 (c and e), I continue to get a floating point error:

T = 101 degree C
Patm = 1
Relative Humidity = 60% or Humidity Ratio = 0.006

Please let me know if you have any suggestions on how to resolve this.

Best regards,

Ali

0

@alish Ali, it was probably me who suggested that over at techsupport! I'm sorry it didn't solve the problem. Are you just dragging out a Type33 (c or e), setting the temperature to 101C and running the input file? I just tried that and didn't get an error. Admittedly I was using 18.06.0001. In any case, could you please send your *.tpf to that email address and include any other files that are needed in order to run it? Please also attach the *.lst and *.log files that are generated when your run the project.

thanks in advance,

 david

  

0
Topic starter

Hi David,

Yes, I am just dragging out a Type33 (c or e), setting the temperature to 101°C, and running the input file. However, I still encounter the floating point error.

As per your suggestion, I have attached the required files, including the .tpf, .lst, and .log files, as well as any other necessary files to run the project. Please let me know if you need anything else.

Thanks for your help!

Best regards,


Ali

0

@alish  this is one of the stranger errors I have run into. My colleagues and I have run the project on a few different computers using exactly the version of Trnsys that you are running and we don't get a floating point error. By any chance do you have colleagues who also use Trnsys and on whose computers you might try the same thing (ie run the project on the same TRNSYS version but on a different computer)

david

Share: