|
[Sponsors] |
November 10, 2016, 13:29 |
Solid temperature gradient
|
#1 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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 11:18. |
|
November 10, 2016, 17:18 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
Does Temperature.grad_x work?
|
|
November 11, 2016, 03:41 |
|
#3 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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 11:17. |
|
November 11, 2016, 04:53 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
November 11, 2016, 05:00 |
|
#5 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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. |
|
November 11, 2016, 05:04 |
|
#6 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
Can you attach your CCL?
|
|
November 11, 2016, 05:12 |
|
#7 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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 06:18. |
|
November 11, 2016, 06:33 |
|
#8 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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 |
|
November 11, 2016, 11:58 |
|
#9 |
Senior Member
Join Date: Jun 2009
Posts: 1,869
Rep Power: 33 |
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 |
|
November 11, 2016, 13:09 |
|
#10 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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. |
|
November 14, 2016, 09:43 |
|
#11 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11 |
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 11:40. |
|
November 14, 2016, 17:00 |
|
#12 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,852
Rep Power: 144 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |
Temperature Gradient at Wall | sven | OpenFOAM | 7 | November 1, 2010 18:25 |
why is solid temperature same as fluid temperature on flow simulation ? | qihongming | FloEFD, FloWorks & FloTHERM | 0 | May 26, 2009 09:57 |
Temperature gradient | Jaho | CFX | 2 | March 12, 2009 20:36 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |