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

Save -> Import , User funtions and expressions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2016, 01:13
Default Save -> Import , User funtions and expressions
  #1
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
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
urosgrivc is offline   Reply With Quote

Old   July 7, 2016, 01:56
Default
  #2
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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?
-Maxim- is offline   Reply With Quote

Old   July 7, 2016, 01:58
Default
  #3
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
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 is offline   Reply With Quote

Old   July 7, 2016, 02:05
Default
  #4
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Thank you Maxim

This will be great if the (loaded (temperature dependant) tabular data will still work) on import
urosgrivc is offline   Reply With Quote

Old   July 7, 2016, 02:12
Default
  #5
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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.
-Maxim- is offline   Reply With Quote

Old   July 7, 2016, 02:38
Default
  #6
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
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.
urosgrivc is offline   Reply With Quote

Old   July 7, 2016, 02:45
Default
  #7
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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
-Maxim- is offline   Reply With Quote

Old   July 7, 2016, 02:51
Default
  #8
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
https://drive.google.com/file/d/0Bw9...ew?usp=sharing

This is what I ment with 5 ccls
urosgrivc is offline   Reply With Quote

Old   July 7, 2016, 03:01
Default
  #9
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
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
urosgrivc 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



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