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

Couple different additional variables

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2014, 13:00
Default Couple different additional variables
  #1
Member
 
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 14
TrII4d is on a distinguished road
hey guys,

is there a way to couple two or more additional variables (AV) with each other?
what i want to do is the following:

i calculated heat flux for all three directions (see http://www.cfd-online.com/Forums/cfx...direction.html) with an additional tensor type "vector" ... so i finally got q_x, q_y and q_z ...

now i want to calculate the gradient X of q_x like this :

\frac{\partial q_x}{\partial x} = \frac{\partial (-\lambda * \frac{\partial T}{\partial x})}{\partial x}

but im not able to write an algebraic equation for this case ... the problem is to handle the two gradients ... this is my actual status :

(- Thermal Conductivity * Temperature.Gradient X).Gradient X

but this is not working ...

another idea is that i calculate \frac{\partial q_x}{\partial x} in an AV tensor type "vector" (name GradQ) and use this AV later, i.e.

GradQ X.Gradient X

but this is not working, too ...

any good ideas?

-thanks!
TrII4d is offline   Reply With Quote

Old   February 5, 2014, 14:37
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
I assume you got the heat flux vector by doing something similar to

ADDITIONAL VARIABLE: MyHeatFluxVector
Option = Vector Algebraic Equation
Vector xValue = - Thermal Conductivity * Temperature.Gradient X
Vector yValue = - Thermal Conductivity * Temperature.Gradient Y
Vector zValue = - Thermal Conductivity * Temperature.Gradient Z
END

Now you should be able to access the MyHeatFluxVector_x.Gradient X, and any of its components.

NOTICE the syntax to access the components of a vector AV. That is the syntax for AV vector components in the ANSYS CFX Solver. Unfortunately, in CFD-Post you will see MyHeatFluxVector X(Y/Z) instead.

Not sure what you are trying to do with these variables, but if you need them for post-processing only you should be able to do the same in CFD-Post and save you to rerun the case. Create a User Defined variable, and select Vector + Gradient.

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

Old   February 6, 2014, 02:28
Default
  #3
Member
 
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 14
TrII4d is on a distinguished road
hi Opaque,

thank you very very much ... this is exactly what i was searching for ...

i read the syntax for a vector AV in the user guide ... but it was not really clear for me ... but now i got it ...
TrII4d 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
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
additional variables' effect ariel CFX 9 April 2, 2008 00:41
user SUBROUTINE for additional variables Tuks CFX 0 November 8, 2005 02:09
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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