CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Solid temperature gradient (https://www.cfd-online.com/Forums/cfx/179908-solid-temperature-gradient.html)

urosgrivc November 10, 2016 12:29

Solid temperature gradient
 
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

ghorrocks November 10, 2016 16:18

Does Temperature.grad_x work?

urosgrivc November 11, 2016 02:41

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.

ghorrocks November 11, 2016 03:53

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.

urosgrivc November 11, 2016 04:00

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.

ghorrocks November 11, 2016 04:04

Can you attach your CCL?

urosgrivc November 11, 2016 04:12

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

urosgrivc November 11, 2016 05:33

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

Opaque November 11, 2016 10:58

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

urosgrivc November 11, 2016 12:09

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 November 14, 2016 08:43

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

ghorrocks November 14, 2016 16:00

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.


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