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

Problem with CEL syntax for additional variable

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2015, 14:47
Default Problem with CEL syntax for additional variable
  #1
New Member
 
Join Date: Jan 2015
Posts: 6
Rep Power: 11
rbezerra is on a distinguished road
Dear all,

I'm trying to model the heat generation caused by reaction through an additional variable. This worked fine on a single liquid phase model. When going to a multiphase (liquid + air), I obtain the following error message in the subdomain tab.

error1.jpg

When I try to rename the additional variable to Resin.alpha (Resin being the fluid name), it does not accept the syntax, I get the following error:

error2.PNG

It seems the dot is not being accepted, but on several CFX help pages, there are several examples of CEL expressions where <Fluid.> is the usual syntax for a fluid prefix.

Anyone would have any idea what I'm doing wrong?

Thanks in advance,

Renato

Last edited by rbezerra; July 30, 2015 at 14:54. Reason: Picture didn't show
rbezerra is offline   Reply With Quote

Old   July 30, 2015, 15:48
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
The first image is missing.

However, for multiphase flow simulations it is sometimes required to use the full name of the variable. For example, MyFluid.MyAdditionalVar.

It does not mean that the variable is defined as MyFluid.MyAdditionalVar, but you want to access the MyAdditionalVar associated to MyFluid. You only have to defined the additional variable as MyAdditionalVar, and activate it on the fluid of interest.

Hope the above helps,
lordluan likes this.
Opaque is offline   Reply With Quote

Old   July 31, 2015, 04:18
Default
  #3
New Member
 
Join Date: Jan 2015
Posts: 6
Rep Power: 11
rbezerra is on a distinguished road
Thanks for the reply Opaque!

I could fix it by defining just the expressions like you said.
Now I get error messages for the interfaces between the region I'm applying the additional variable to (a porous domain) and a solid domain surrounding it.

"The object "ADDITIONAL VARIABLE: alpha" is present in the object... but it is not physically valid."

However, I cannot disable this option at the refered interface setup.

interface_setup.PNG

Any hint on that?
rbezerra is offline   Reply With Quote

Old   July 31, 2015, 11:33
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
I am sorry.. Difficult to tell w/o more context.

Definitely, the software indicates the Additional Variable is not allowed on such interface for some reason.

Is the additional variable active for all phases in the domains on both sides of the interface ?
Opaque is offline   Reply With Quote

Old   July 31, 2015, 11:47
Default
  #5
New Member
 
Join Date: Jan 2015
Posts: 6
Rep Power: 11
rbezerra is on a distinguished road
Hi Opaque,

The additional variable is now active just for the fluid (and not for air), and just for the porous domain, i.e. I created a subdomain for the extra variable which is located only in the porous domain.

The geometry is exactly the same as in the single phase case, but there I didn't have any error message regarding these interfaces porous-solid. The error appeared only after switching to multiphase.
rbezerra is offline   Reply With Quote

Reply

Tags
additional variable, cel expression, multiphase model


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 in using of additional variable in wall velocity adsladsl CFX 10 May 31, 2015 20:29
Kinematic Diffusivity - Problem with additional variable clau90 CFX 3 May 14, 2014 10:54
OpenFoam-1.6-ext Allwmake compilation error - one last barrier Pat84 OpenFOAM Installation 15 July 25, 2012 22:49
problem in writing CEL expressions for mesh motion hasan56 CFX 2 October 20, 2011 13:55
Which variable represents shear stress in CEL? zhou CFX 0 October 13, 2005 02:21


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