CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   anisotropic material in CFX R13.0 (https://www.cfd-online.com/Forums/cfx/87962-anisotropic-material-cfx-r13-0-a.html)

keeper May 4, 2011 04:20

anisotropic material in CFX R13.0
 
Hi everyone,
I have a problem with defining anisotropic material in the last release of CFX.
I need to define thermal conductivity for each coordinate axis in specific value but I didn't succeed.
I tried to edit material in command editor using expression :

THERMAL CONDUCTIVITY:
Option = Orthotropic Cartesian Components
Thermal Conductivity X Component = 29 [W m^-1 K^-1]
Thermal Conductivity Y Component = 29 [W m^-1 K^-1]
Thermal Conductivity Z Component = 10 [W m^-1 K^-1]
END

But it doesn't work..

Please can anyone help me?? All suggestions are appreciated.

Thanks a lot

Attesz May 4, 2011 10:42

This ccl seems to be ok, what is your error message?

keeper May 5, 2011 03:16

Error message says that only allowed options are: value or kinetic theory model.
This ccl used to work in release 10 and 11 but it doesn't work in the latest release.

keeper May 11, 2011 05:59

Is it possible to define this property by some expression??

Does anybody know how to define expression like f=(x,y,z) when I have defined x,y and z components??

ghorrocks May 11, 2011 07:37

You can use a 3D interpolation function, if that is what you mean. If you want to set up a function like can be defined in fortran which returns a value, no this cannot be done in CEL. You will need user fortran for that.

keeper May 11, 2011 07:47

I have defined thermal conductivity in x,y and z direction by using expression..

cond x = .... W m^-1 K^-1
cond y = ....W m^-1 K^-1
cond z = ....W m^-1 K^-1

And now I would like to define an expression which includes these three expressions as its components (x,y,z).

Is it possible to define it this way??

keeper May 17, 2011 11:41

If somebody is interested the problem can be solved by using command line in CFX Launcher > Tools > Command line using command:

cfx5cmds -read -def ________.def -text ______.txt

which transforms def file into text file. Then by simple opening by notepad and modifying property as mentioned before you can modify this txt file and using command

cfx5cmds -write -def ________.def -text ______.txt

you will obtain modified def file with desired modifications.

Hope it will help someone.....

Good luck with your simulations ;)

noslip June 22, 2011 06:15

you could also keep your anisotropy infos in a seperate .ccl and start the solver like this:

cfx5solve.exe -def yoursimulation.def -ccl youranisomaterial.ccl


youranisomaterial.ccl would contain the entire material definition including
the "replace" command and of course the values.


LIBRARY:
&replace MATERIAL: Copper
Material Group = ...
...
...

THERMAL CONDUCTIVITY:
Option = Orthotropic Cartesian Components
Thermal Conductivity X Component = ...
...
...

END

mactech001 May 30, 2012 05:49

error message sustained
 
1 Attachment(s)
Dear keeper, noslip,

i've met with an error message while trying to perform the steps you've recommended. the error message is attached as JPEG here.

would you mind helping me to find out what else could i have done wrong in the setup please?

keeper May 30, 2012 12:53

sorry I cant recognize much from your jpg. Could you attach out or txt file of your simulation please?

serezhkin November 6, 2012 12:54

In case anyone still needs this, here's the ccl I received from ANSYS customer support:

LIBRARY:
&replace MATERIAL: Anyso
Material Group = User
Option = Pure Substance
Thermodynamic State = Solid
PROPERTIES:
Option = General Material
EQUATION OF STATE:
Density = 2.645E3 [kg m^-3]
Molar Mass = 1 [kg kmol^-1]
Option = Value
END
REFERENCE STATE:
Option = Specified Point
Reference Specific Enthalpy = 0 [J kg^-1]
Reference Temperature = 25 [C]
END
SPECIFIC HEAT CAPACITY:
Option = Value
Specific Heat Capacity = 1.36E3 [J kg^-1 K^-1]
END
THERMAL CONDUCTIVITY:
Option = Orthotropic Cartesian Components
Thermal Conductivity X Component = 0.001 [W m^-1 K^-1]
Thermal Conductivity Y Component = 500 [W m^-1 K^-1]
Thermal Conductivity Z Component = 5 [W m^-1 K^-1]
#Thermal Conductivity = 175 [W m^-1 K^-1]
AXIS DEFINITION:
Option = Coordinate Axis
Rotation Axis = Coord 0.3
END
END
END
END
END

serezhkin November 16, 2012 14:51

Quote:

Originally Posted by keeper (Post 307979)
If somebody is interested the problem can be solved by using command line in CFX Launcher > Tools > Command line using command:

cfx5cmds -read -def ________.def -text ______.txt

which transforms def file into text file. Then by simple opening by notepad and modifying property as mentioned before you can modify this txt file and using command

cfx5cmds -write -def ________.def -text ______.txt

you will obtain modified def file with desired modifications.

Hope it will help someone.....

Good luck with your simulations ;)

That is a great tip, thank you very much!

madhava317 December 25, 2012 12:36

Stopped in routine DEF_DIFMOLC
 
Thanks for the above suggestions. I have defined anisotropy as suggested. But I got the following error. Can any help in resolving this?



+--------------------------------------------------------------------+
| Writing crash recovery file |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| ERROR #001100279 has occurred in subroutine ErrAction. |
| Message: |
| Stopped in routine DEF_DIFMOLC |
| |
| |
| |
| |
| |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| An error has occurred in cfx5solve: |
| |
| The ANSYS CFX solver exited with return code 1. No results file |
| has been created. |
+--------------------------------------------------------------------+

ghorrocks December 26, 2012 05:53

CFX does give some horrible crytic error messages sometimes.

This error might be associated with something to do with molecular diffusion. You probably have some physics defined which requires a material property (associated with diffusion I am guessing) which is not defined so it bombs out with and error.

I would simplify your model until it starts working. Then add the physics one bit at a time until it crashes - then you know what is causing the problem.

madhava317 December 26, 2012 07:11

The problem is simple, There is cube inside air flow. Flow in X direction. The cube has heat generatlion. First case I have defined isotropic conductivity. The problem ran fine.

Then in the second run I have introduced the anisotropic material properties as mentioned in above threads. Then I got this error after single interation. I am using CFX 11

ghorrocks December 26, 2012 07:14

So it is a statement of the obvious that the problem is with the way you set the anisotropic material properties. Note that I think this is a beta feature in CFX which means they might have changed the CCL structure from what you see here. THe best way to get it working is to contact CFX support and get the CCL structure for it.

Also you will find support will probably not support V11, the current version is V14.5. So you should consider upgrading.

Mina_Shahi February 7, 2013 05:54

K(T)
 
Quote:

Originally Posted by ghorrocks (Post 307155)
You can use a 3D interpolation function, if that is what you mean. If you want to set up a function like can be defined in fortran which returns a value, no this cannot be done in CEL. You will need user fortran for that.

Hi

I want to define thermal conductivity as a function of temperature. is that possible to do in CFX? indeed i am simulating conjugated heat transfer in CFX and i have solid part which is steel and by default there is value corresponding to 25 C however i need to give the properties as a function of temperature. Is that possible ?
solid part in my case is embedded inside a combustion chamber and the flow inside that is meant for cooling therefore the temperature gradient in the solid is quite important for us if we can't define material varying by temperature this temperature gradient has no sense,.

ghorrocks February 7, 2013 05:57

I am pretty sure that will work. Just try it and if it does not work it will tell you.

Mina_Shahi February 7, 2013 06:00

Quote:

Originally Posted by ghorrocks (Post 406495)
I am pretty sure that will work. Just try it and if it does not work it will tell you.

I can define it as function of (x,y,z) but not as a function of temperature since the temperature is variable and it will be calculated during the simulation so i am not sure how to do that.

ghorrocks February 7, 2013 06:13

Is the thermal conductivity just a function of temperature, or of other things as well? In fact, can you post the function you are trying to use?

endacid March 13, 2013 09:16

as serezhkin write it's working.Thanks!
But keep in mind that the properties will work only reffered to the Coord 0.

Mahesh Patil October 16, 2016 10:25

Quote:

Originally Posted by serezhkin (Post 390635)
In case anyone still needs this, here's the ccl I received from ANSYS customer support:

LIBRARY:
&replace MATERIAL: Anyso
Material Group = User
Option = Pure Substance
Thermodynamic State = Solid
PROPERTIES:
Option = General Material
EQUATION OF STATE:
Density = 2.645E3 [kg m^-3]
Molar Mass = 1 [kg kmol^-1]
Option = Value
END
REFERENCE STATE:
Option = Specified Point
Reference Specific Enthalpy = 0 [J kg^-1]
Reference Temperature = 25 [C]
END
SPECIFIC HEAT CAPACITY:
Option = Value
Specific Heat Capacity = 1.36E3 [J kg^-1 K^-1]
END
THERMAL CONDUCTIVITY:
Option = Orthotropic Cartesian Components
Thermal Conductivity X Component = 0.001 [W m^-1 K^-1]
Thermal Conductivity Y Component = 500 [W m^-1 K^-1]
Thermal Conductivity Z Component = 5 [W m^-1 K^-1]
#Thermal Conductivity = 175 [W m^-1 K^-1]
AXIS DEFINITION:
Option = Coordinate Axis
Rotation Axis = Coord 0.3
END
END
END
END
END

Hi, regarding post number #11 in this thread:

Here, the thermal conductivity has been defined in x,y and z direction, respectively. But why again thermal conductivity is defined in # statement? Is it average thermal conductivity? If so average is 168.33 [W m^-1 K^-1] and not 175 175 [W m^-1 K^-1].

I am facing same issue, in which I have use a solid material in cfx which is an-isotropic considering varying thermal conductivity in x,y,z.

To quote #11
" THERMAL CONDUCTIVITY:
Option = Orthotropic Cartesian Components
Thermal Conductivity X Component = 0.001 [W m^-1 K^-1]
Thermal Conductivity Y Component = 500 [W m^-1 K^-1]
Thermal Conductivity Z Component = 5 [W m^-1 K^-1]
#Thermal Conductivity = 175 [W m^-1 K^-1] "

ghorrocks October 16, 2016 19:52

As this is an undocumented feature I don't think anybody will know the answer to your question. Unless you have access to the CFX source code.....

So the only way to find out is to test to see what it does. Do a simple demonstration simulation using anisotropic thermal conductivity, and then repeat it using 10x the isotropic thermal conductivity and see if it makes any difference. The isotropic thermal conductivity may well be ignored by the solver but it is required so the check for the necessary parameters to define the run are present. But that is just a guess.

Nurzhan June 1, 2017 21:54

# symbol means the beginning of a comment and hence everything that stays after the symbol is not considered in your CFD code


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