CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Additional Variable Source Term in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2015, 13:56
Default Additional Variable Source Term in CFX
  #1
Member
 
PranjalNewton's Avatar
 
Pranjal Singh
Join Date: Sep 2015
Posts: 34
Rep Power: 11
PranjalNewton is on a distinguished road
Hi there, I've been trying to do the additional variable source term idea given at http://www.eureka.im/4110.html to deal with problems with recursive CEL in CFX. I tried the other methods suggested but they don't work for me.

So, I'm using this CCL expression:

Code:
FLOW: Flow Analysis 1
  DOMAIN: Fluid Domain
    &replace SUBDOMAIN: P Subdomain
      Coord Frame = Coord 0
      Location = B34
      MESH MOTION: 
        Option = Unspecified
      END
      SOURCES: 
        EQUATION SOURCE: wnow
          Option = Source
          Source = (w-wnow)* 1000 [kg m^-3 s^-1]
        END
      END
    END
  END
END
This gives no CCL interpretation warning but a general warning that wnow is not available as an option in the Sources tab. Isee that it really is the case as there is only "continuity" option there.
The exact error is:

The object "/FLOW:Flow Analysis 1/DOMAIN:Fluid Domain/SUBDOMAIN:P Subdomain/SOURCES" contains the following object: "wnow" whose name is not in the set of those allowed: "continuity".

Note that I've defined the additional variable "wnow" as =w so that I get a 'copy' of w value from previous iteration to be used in present.

Please Help. Thanks!
PranjalNewton is offline   Reply With Quote

Old   October 28, 2015, 16:12
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
You are posting a short snippet of the command file out of context.

How is the variable/equation wnow defined, and activated on the given domain. Is the definition, and activation compatible to support a source in a subdomain?
Opaque is offline   Reply With Quote

Reply

Tags
ccl, code, source


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18


All times are GMT -4. The time now is 11:55.