|January 10, 2012, 12:42||
Empty/Dummy term for equations?
Join Date: May 2010
Blog Entries: 1Rep Power: 8
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||
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149Rep Power: 7
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?
|Thread||Thread Starter||Forum||Replies||Last Post|
|momentum source term||zwdi||FLUENT||13||December 5, 2013 18:58|
|Problem of SOURCE term gradient in UDS||wind||Fluent UDF and Scheme Programming||5||June 21, 2013 05:39|
|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 15:45|
|bouyancy term in epsilon equation||Michael||Main CFD Forum||1||June 25, 1999 10:20|