CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

define material property with a function

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2023, 02:16
Default define material property with a function
  #1
New Member
 
Amlan Biswas
Join Date: May 2023
Location: Khulna, Bangladesh
Posts: 3
Rep Power: 2
amlanbiswas is on a distinguished road
When I create a heat capacity expression for water and try to plot, it shows me this error.

WARNING
Syntax error detected in the expression assigned to 'Meat Water'.
Successfully read 70 characters:
4128.9[J/(kg K)]-0.090864*(T-273.15[K] )[J/(kg K)]+0.0054731*(T-273.15
then error detected at:
[k])^2[J/(kg K^-3)]
Details - Unrecognised or invalid units.

I am struggling to understand the problem.

the expression is
4128.9[J/(kg K)]-0.090864*(T-273.15[K] )[J/(kg K)]+0.0054731*(T-273.15[k])^2[J/(kg K^-3)]
amlanbiswas is offline   Reply With Quote

Old   June 9, 2023, 05:54
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,708
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The error message tells you exactly what the problem is: [k] is invalid units. Try making it [K]. The "K" of Kelvin is case sensitive.
Opaque, karachun and amlanbiswas like this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfx


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 13:52
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 06:37.