|
[Sponsors] |
June 9, 2023, 03:16 |
define material property with a function
|
#1 |
New Member
Amlan Biswas
Join Date: May 2023
Location: Khulna, Bangladesh
Posts: 3
Rep Power: 3 |
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)] |
|
June 9, 2023, 06:54 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
cfx |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error in enabling the python wrapper | Jinn | SU2 Installation | 2 | April 23, 2022 14:52 |
[mesh manipulation] refineMesh Error | mohsen.boojari | OpenFOAM Meshing & Mesh Conversion | 3 | March 1, 2018 23:07 |
[swak4Foam] installation problem with version 0.2.3 | Claudio87 | OpenFOAM Community Contributions | 9 | May 8, 2013 11:20 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |