|
[Sponsors] |
Odd problem linking variables with field functions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2022, 19:42 |
Odd problem linking variables with field functions
|
#1 |
New Member
John Rosser
Join Date: Dec 2022
Posts: 1
Rep Power: 0 |
I am trying to model particle flow where the particle cohesiveness is linked to the temperature of the particle. I want to make it so that the cohesive work value is 0 when the particles are above 0 Celsius.
The field function I created in place of the cohesive work value is defined as: (${ParticleTemperature} >= 273.15) ? 0300) I get this error: "Unable to compute field function CW_T on "ContactCloud". Please check that function is defined here." I cannot find any information about the contact cloud online or in the user manual. I can make the cohesive work value dependent on other contact parameters, but that does not help me as it must be dependent on the particle temperature. |
|
December 12, 2022, 12:31 |
|
#2 |
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17 |
It looks like you maybe have extra braces. Whatever you copied in shows a where there should be ':'. Also, do you need the one after 273.15?
It sounds like this is part of a larger function, right? Consider creating a separate variable for this and call that in the larger function. It will be easier to troubleshoot. I don't think your problem is 'ContactCloud' or whatever that is (I can't find it either). I think it's just a syntax error, but I don't see the full picture of what you are doing. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Particle Field Variables in Lagrangian Particle Tracking - CFX | lyday011 | CFX | 10 | May 31, 2022 13:51 |
Variables and Field Functions | Necicse | FLUENT | 0 | June 10, 2021 13:03 |
Can any ambiguous function found in both report and field function creates problem? | AbhishekShingalaCFD | STAR-CCM+ | 6 | May 12, 2021 23:00 |
[swak4Foam] swakExpression not writing to log | alexfells | OpenFOAM Community Contributions | 3 | March 16, 2020 18:19 |
Adaptive Mesh Refinement and Custom Field Variables | hconel | OpenFOAM | 0 | October 24, 2019 17:50 |