CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Additional Variable Source Term in CFX (https://www.cfd-online.com/Forums/cfx/161777-additional-variable-source-term-cfx.html)

PranjalNewton October 28, 2015 12:56

Additional Variable Source Term in CFX
 
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! :o

Opaque October 28, 2015 15:12

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?


All times are GMT -4. The time now is 04:02.