CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Save -> Import , User funtions and expressions (https://www.cfd-online.com/Forums/cfx/174193-save-import-user-funtions-expressions.html)

urosgrivc July 7, 2016 01:13

Save -> Import , User funtions and expressions
 
Is there a way that you are able to:

-Save User functions and Expressions
-Than import them into another simulation

Aplications are in my case regarding material properties as I have temperature dependat thermal properties and would like to use this materials in diferent simulations.
or is there a beter way?
Or is it posible to somehow save the material into cfx that it would stay there
It takes me too much time now to set up two diferent properties for two materails than expressions for (T) and set these as a mat. property.
Thank you

-Maxim- July 7, 2016 01:56

I think what you are trying to do is to save the CCL in Pre. When you click on that little disk symbol with the 3 green dots, Pre lets you save a *.ccl file. You can then load that file into another simulation in Pre and all your expressions, simulation setup (turbulence models, materials, etc) and your monitor points etc. are loaded.
Is that what you needed?

urosgrivc July 7, 2016 01:58

i can only see one shortcut now, that is to copy the ccl (save it as text) for that material I would like than owerrite one of the materials ccl when importing.
Is this it or can you save material into library?

urosgrivc July 7, 2016 02:05

Thank you Maxim

This will be great if the (loaded (temperature dependant) tabular data will still work) on import

-Maxim- July 7, 2016 02:12

in PRE: File --> Export --> CCL
Yes, you can edit that file with a text editor and add/edit things. But I only recommend that if you know what you do.

Saving material to the library should work too - I haven't tried that myself, though.

urosgrivc July 7, 2016 02:38

Ok I see now,
I need to import more ccl. files to activate all the properties of one material:

so for GJL 250 with (T) dependant heat cappacity and (T) dependat thermal conductivity I need to import:

-ccl of the material gjl250
2x -ccl of User function (tabular data of T dependant properties)
2x -ccl of expression that cals the user function(T)

so 5 ccls for one material

Thank you a lot this will save hours and has oppened a new branch of posibilites to me.

-Maxim- July 7, 2016 02:45

with my project, I need only to save the CCL once in Pre. If I load that again, _all_ settings are loaded again. Not sure why you need to load 5 ccl files... But I don't work with those complicated materials so I can't say.
When you import the CCL, you have the option to "add" or "replace" the ccl that is in place (already loaded). Choose accordingly

urosgrivc July 7, 2016 02:51

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

This is what I ment with 5 ccls

urosgrivc July 7, 2016 03:01

Ou this is perfect :)

I am able to combine those 5 and save as 1-ccl file just for this material
i am now able to do this for more materials and just call them in.

Example of ccl code for my GJL250 material
Including those 5 setings in cfx
and temperature dependant properties
https://drive.google.com/file/d/0Bw9...ew?usp=sharing


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