|
[Sponsors] |
January 10, 2012, 12:42 |
Empty/Dummy term for equations?
|
#1 |
Senior Member
|
Just at the moment I am struggling with switching on and off equations/equation terms within solvers.
Just removing one or two terms from an equation by way of "XEqn += ..." is straight forward and works nearly every time for me (the other times are typos). But sometimes it would be necessary to completely neutralise the equation without removing it from the solver as such. If I remove all of the equation terms, the compiler does what it must and complains/fails, because it cannot relax/solve an empty equation. Is there anything such as an empty/dummy term (e.g. fvc::dummy())? A term that would satisfy the compiler and the rest of the functions but that would just rewrite the values from the last iteration step without any alteration? Or if there is none: Who can help me building that dummy term? Thank you for your answers already in advance! |
|
January 11, 2012, 06:13 |
|
#2 |
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16 |
Why don't you wrap an if statement around the equation?
But more interesting, what are you trying to achieve with this? Why do you want to neutralize an equation without removing it? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem of SOURCE term gradient in UDS | wind | Fluent UDF and Scheme Programming | 6 | December 1, 2022 15:21 |
momentum source term | zwdi | FLUENT | 14 | June 27, 2017 16:40 |
Large source term in species equation | MACFD | FLUENT | 4 | January 4, 2011 15:16 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
bouyancy term in epsilon equation | Michael | Main CFD Forum | 1 | June 25, 1999 11:20 |