CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Empty/Dummy term for equations?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2012, 12:42
Default Empty/Dummy term for equations?
  #1
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
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!
Linse is offline   Reply With Quote

Old   January 11, 2012, 06:13
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16
stevenvanharen is on a distinguished road
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?
stevenvanharen is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 03:35.