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

Empty/Dummy term for equations?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 10, 2012, 12:42
Default Empty/Dummy term for equations?
  #1
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Magdeburg/Geneva
Posts: 178
Blog Entries: 1
Rep Power: 7
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: 7
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 15:45.