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

Solid temperature gradient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2016, 12:29
Default Solid temperature gradient
  #1
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Is it posible to make a variable in CFXpre for Temperature gradient within a solid domain?

Temperature gradient_(x,y,z) is what I would like to use vithin cfxpre.

is it posible to make an aditional variable for it?

Thank you

Last edited by urosgrivc; November 11, 2016 at 10:18.
urosgrivc is offline   Reply With Quote

Old   November 10, 2016, 16:18
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Does Temperature.grad_x work?
ghorrocks is offline   Reply With Quote

Old   November 11, 2016, 02:41
Default
  #3
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Thank you mr. Glenn,

But the Temperature.grad_x does not work.

Let say I would like to monitor: volumeavg(Temperature.grad_x)@mydomain

It comes up with error:
The solver does not support the use of this operator for this variable when used as an argument for this function.

Althoe I can use this expression in cfxpost and the unit is [K m^-1] which is good.


Static enthalpy gradient would also be usefull to me, but ewerithing works until I include GRADIENT of that variable

This must be posible somehow as I am able to make two poits and do it manuali.

Last edited by urosgrivc; November 11, 2016 at 10:17.
urosgrivc is offline   Reply With Quote

Old   November 11, 2016, 03:53
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
How about using a few lines of CEL:

a=Temperature.grad_x
b=volumeAve(a)@mydomain

Sometimes splitting the function into components like this side-steps the restriction.
ghorrocks is offline   Reply With Quote

Old   November 11, 2016, 04:00
Default
  #5
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Thank you again

I have tried this and is still not working, it puts out:

...>has an invalid argument, 'a'. Only arguments that consist of a single recognised variable name are supported by the solver.
urosgrivc is offline   Reply With Quote

Old   November 11, 2016, 04:04
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Can you attach your CCL?
ghorrocks is offline   Reply With Quote

Old   November 11, 2016, 04:12
Default
  #7
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
this is the ccl file:
it is a very simple geometry, it is a cube with two oposing circle inprinted faces
one is at T=100°C the other one is at T= 200°C all other faces are adiabatic, material is modified steel.
I am sory I have exported all data so there is a lot of useles material data also included.

ccl= https://drive.google.com/file/d/0Bw9...ew?usp=sharing

geometry in cfxpost with temp grad contour (expresions deactivated, so the solver runs) https://drive.google.com/file/d/0Bw9...ew?usp=sharing

Last edited by urosgrivc; November 11, 2016 at 05:18.
urosgrivc is offline   Reply With Quote

Old   November 11, 2016, 05:33
Default
  #8
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
I have found why this doesent work:

CFX reference Guide (page 229)
or
help->Quantitative CEL Functions in ANSYS CFX

In CFX-Pre the operand cannot be a CEL expression or any operand qualified by <Variable_Operator>.
However, you can create an Additional Variable based on any expression and then use the
Additional Variable as the operand. "How can I do this?"

The operand always uses the conservative values unless the
Boundcon variable operator is specified (for details, see Data Acquisition Routines in the CFX-Solver
Modeling Guide). For primitive or composite mesh regions, conservative values will be used even if
the Boundcon variable operator is specified.

<Variable_Operator> = grad = Gradient

Now I can see mr. Glenn why you proposed decomposition of expression and why it is still not functioning.
But I haven't figured it out yet
urosgrivc is offline   Reply With Quote

Old   November 11, 2016, 10:58
Default
  #9
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
As mentioned in the documentation, operators nor expression are supported in the argument list of quantitative CEL functions such as volumeAve.

A common practice is to copy the gradient to an algebraic additional variable, say MyTempGrad

Steps:
- Create Unspecified Vector Additional Variable
- Activate Additional Variable in the Domain panel
- Fill in the additional variable components

xValue = Temperature.Gradient X
yValue = Temperature.Gradient Y
zValue = Temperature.Gradient Z

Create monitor point expressions using

volumeAve(MyTempGrad_x)@domain
Opaque is offline   Reply With Quote

Old   November 11, 2016, 12:09
Default
  #10
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Thank You very much Opaque and Glenn,

It is working now,
I am looking forward to implement this on my real model.
+It has opened new uses of cfx for me

Thank you for Your time.
urosgrivc is offline   Reply With Quote

Old   November 14, 2016, 08:43
Default
  #11
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Is it posible to change material properties based on a TRANS_LOOP comand.

I would like to set material thermal conductivitiy based on the heat flux results from previous timestep, I have basicly tryed this already but results arent vhat I was expecting.

The goal is to make some kind of topology optimization loop for thermal path optimization.

Like this: https://drive.google.com/file/d/0Bw9...ew?usp=sharing And loop this

To get best thermal conduction path from steady state https://drive.google.com/file/d/0Bw9...ew?usp=sharing to optimized to let say 50% mass

Last edited by urosgrivc; November 14, 2016 at 10:40.
urosgrivc is offline   Reply With Quote

Old   November 14, 2016, 16:00
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This does not appear to be a simulation I would do in CFD. If I was doing this I would write a finite difference solver in python or matlab. You could also consider FREEFEM or some general PDE solvers as well.

Then you have complete control over everything. And you are just dealing with the heat equations so the equations you are modelling are straight forwards.
ghorrocks 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
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Temperature Gradient at Wall sven OpenFOAM 7 November 1, 2010 17:25
why is solid temperature same as fluid temperature on flow simulation ? qihongming FloEFD, FloWorks & FloTHERM 0 May 26, 2009 08:57
Temperature gradient Jaho CFX 2 March 12, 2009 19:36
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 08:20.