CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Question about CFX-pre and CFX-post script (https://www.cfd-online.com/Forums/cfx/107278-question-about-cfx-pre-cfx-post-script.html)

Anna Tian September 22, 2012 15:19

Question about CFX-pre and CFX-post script
 
Hi,

May I ask do CFX-pre and CFX-post have script to record all my setting so that after I import the mesh(or .res file) I won't need to set them again and by running the script I obtain the setting(or picture) directly?

mp121209 September 22, 2012 16:33

Yes, they have the abilities you mentioned. In the CFX-Pre you can import and export CCL files. In the CFD-post you can save and reuse a state file (.cst file)

ghorrocks September 24, 2012 21:49

Pre and Post also have session files which are like recording and playing back user actions.

Anna Tian September 26, 2012 06:54

Quote:

Originally Posted by ghorrocks (Post 383418)
Pre and Post also have session files which are like recording and playing back user actions.

I didn't find it. Maybe my CFX doesn't have it. May I ask how to open it? Where's the button?

eng_norouzi October 3, 2012 04:34

file=>export=>CCL and in your next simulation file=>import=>CCL

Jeremy B. October 3, 2012 10:08

Quote:

Originally Posted by eng_norouzi (Post 384672)
file=>export=>CCL and in your next simulation file=>import=>CCL

It depends on the "variety" of your studies but you may also have to add few lines of perl script in the CCL file to avoid some problems.

For example, if the number of domains varies, your CCL will define the first X domains but not all of them.
(the same with interfaces, boundaries, etc)

Otherwise, this method works very well in CFX-pre and CFX-post.

Anna Tian October 7, 2012 13:44

Quote:

Originally Posted by ghorrocks (Post 383418)
Pre and Post also have session files which are like recording and playing back user actions.

Thanks for your answer. Where to find these files and how to run them? It seems CCL only save my settings. But I hope the my actions like transforming and copying meshes in CFX-pre can also be recorded and repeated when I want to. How to do that?

Thanks!

cdegroot October 8, 2012 00:55

Quote:

Originally Posted by Anna Tian (Post 385361)
Thanks for your answer. Where to find these files and how to run them? It seems CCL only save my settings. But I hope the my actions like transforming and copying meshes in CFX-pre can also be recorded and repeated when I want to. How to do that?

Thanks!

Yeah the CCL won't have information on transformations. You should try the suggestion of recording a session file.

mp121209 October 8, 2012 03:38

A .cfx format file is a session file. You can use it to do your work!

AdrianCzubajs October 29, 2015 02:57

Scripting single node in CFX
 
Hi,

Can I ask you about CFX-post scripting. Is it possible to read ex. temperature from a single node? Have you ever tried to define the parameters to the single node in CFX -pre? may you have same examples?

Thanks
Adrian

Antanas October 29, 2015 03:36

Quote:

Originally Posted by AdrianCzubajs (Post 570795)
Hi,

Can I ask you about CFX-post scripting. Is it possible to read ex. temperature from a single node? Have you ever tried to define the parameters to the single node in CFX -pre? may you have same examples?

Thanks
Adrian

Mesh node or arbitrary point in flow domain?

AdrianCzubajs October 29, 2015 04:35

Quote:

Originally Posted by Antanas (Post 570803)
Mesh node or arbitrary point in flow domain?

Point in flow doman of course. I used to do a machanical calculations (APDL) that is why I made a mistake.

AC

Antanas October 29, 2015 05:37

Quote:

Originally Posted by AdrianCzubajs (Post 570810)
Point in flow doman of course. I used to do a machanical calculations (APDL) that is why I made a mistake.

AC

Use probe function

AdrianCzubajs October 29, 2015 08:50

Quote:

Originally Posted by Antanas (Post 570821)
Use probe function

Thank you. I've just read that Values are stored in the results file at nodes and represent “average” control volume values. Could you tell ma how to get a value from the nodes located for example on the wall? Is kind of selection tool like in APDL? I'd like to select all nodes from the wall.

best regards
Adrian

Antanas October 29, 2015 22:38

Quote:

Originally Posted by AdrianCzubajs (Post 570850)
Thank you. I've just read that Values are stored in the results file at nodes and represent “average” control volume values. Could you tell ma how to get a value from the nodes located for example on the wall? Is kind of selection tool like in APDL? I'd like to select all nodes from the wall.

best regards
Adrian

What do you mean by 'get'? You can plot values on a boundary, you can export it to csv file and so on. What do you want? On boundaries there's two types of values called 'Hybrid' and 'Conservative'. First comes from boundary conditions, second represents average control volume value. You can choose between them.

AdrianCzubajs October 30, 2015 13:41

Quote:

Originally Posted by Antanas (Post 570938)
What do you mean by 'get'? You can plot values on a boundary, you can export it to csv file and so on. On boundaries there's two types of values called 'Hybrid' and 'Conservative'. First comes from boundary conditions, second represents average control volume value. You can choose between them.

I mean I want to save (ex. in file) a value from the single node or point from the wall in CFX-Post and use this value in a single node or point in CFX Pre.
In CFX-Post I can do this with session file (.cse) In CFX-Pre I can use CCL. If I am wrong please let me know.
I thought I can select nodes/points from the 'wall boundary condition' and write to file values from this nodes/points. I can write to file (Perl+csv) but how Can I get a value from the nodes/points from the 'wall boundary condition'?

Adrian


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