|
[Sponsors] | |||||
Odd problem linking variables with field functions |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#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) ? 0 300)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. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 19 ![]() |
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. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Particle Field Variables in Lagrangian Particle Tracking - CFX | lyday011 | CFX | 10 | May 31, 2022 14:51 |
| Variables and Field Functions | Necicse | FLUENT | 0 | June 10, 2021 14:03 |
| Can any ambiguous function found in both report and field function creates problem? | AbhishekShingalaCFD | STAR-CCM+ | 6 | May 13, 2021 00:00 |
| [swak4Foam] swakExpression not writing to log | alexfells | OpenFOAM Community Contributions | 3 | March 16, 2020 19:19 |
| Adaptive Mesh Refinement and Custom Field Variables | hconel | OpenFOAM | 0 | October 24, 2019 18:50 |