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

how to operate CFX on cluster (no gui)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By imnull
  • 1 Post By imnull

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2013, 13:48
Default how to operate CFX on cluster (no gui)
  #1
Member
 
Dmitry
Join Date: Nov 2011
Posts: 45
Rep Power: 14
imnull is on a distinguished road
Hi All,
My CFX tasks requires to set physical time (time step in sec).. On the workstation I can easily change the time step during the process of converging monitoring.
question:
Is any way to set up time step on certain iteration and create *.def to be solved on a cluster (no gui) after?
Thankx,
me
imnull is offline   Reply With Quote

Old   January 18, 2013, 14:37
Default
  #2
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17
cdegroot is on a distinguished road
I'm not sure if I totally understand your question but you can use cfx5cmds to read a def file into a ccl file which you can then change and write the new ccl back into the def file. Or you can put the new timestep information into a ccl file and append it at runtime using the -ccl option on cfx5solve. Is this what you are after, or no?
cdegroot is offline   Reply With Quote

Old   January 18, 2013, 15:02
Default
  #3
Member
 
Dmitry
Join Date: Nov 2011
Posts: 45
Rep Power: 14
imnull is on a distinguished road
Quote:
Originally Posted by cdegroot View Post
I'm not sure if I totally understand your question but you can use cfx5cmds to read a def file into a ccl file which you can then change and write the new ccl back into the def file. Or you can put the new timestep information into a ccl file and append it at runtime using the -ccl option on cfx5solve. Is this what you are after, or no?
ah.. typed in CL: cfx5cmds -help %)
could you pls write a command line (as an example to change time step) thankx in advance
imnull is offline   Reply With Quote

Old   January 18, 2013, 15:13
Default
  #4
Senior Member
 
cdegroot's Avatar
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17
cdegroot is on a distinguished road
Let's say you have a def file called test.def. You would type cfx5cmds -read -def test.def -ccl test.ccl to read the command language from the def file into a ccl file that can be changed. In test.ccl you will find something like:

CONVERGENCE CONTROL:
Maximum Number of Iterations = 100
Minimum Number of Iterations = 1
Physical Timescale = 1 [s]
Timescale Control = Physical Timescale
END

Edit the physical timescale line to what you want. Then type cfx5cmds -write -def test.def -ccl test.ccl to write the new command language to the original def file. The def file will now contain the new ccl commands.

Hope that helps.
cdegroot is offline   Reply With Quote

Old   January 18, 2013, 17:26
Thumbs up
  #5
Member
 
Dmitry
Join Date: Nov 2011
Posts: 45
Rep Power: 14
imnull is on a distinguished road
Quote:
Originally Posted by cdegroot View Post
let's say you have a def file called test.def. You would type cfx5cmds -read -def test.def -ccl test.ccl to read the command language from the def file into a ccl file that can be changed. In test.ccl you will find something like:

Convergence control:
Maximum number of iterations = 100
minimum number of iterations = 1
physical timescale = 1 [s]
timescale control = physical timescale
end

edit the physical timescale line to what you want. Then type cfx5cmds -write -def test.def -ccl test.ccl to write the new command language to the original def file. The def file will now contain the new ccl commands.

Hope that helps.
!!!thanks!!!
Works ok
imnull is offline   Reply With Quote

Old   January 21, 2013, 22:38
Default
  #6
Member
 
Dmitry
Join Date: Nov 2011
Posts: 45
Rep Power: 14
imnull is on a distinguished road
btw: there is another way to set up time in -PRE.... 300*1e-6, 100*1e-4 [s] meas 300steps at 1e-6s and 100steps at 1e-4s right after first 300steps
Aktigridia likes this.
imnull is offline   Reply With Quote

Old   March 17, 2014, 10:37
Default question about time
  #7
New Member
 
Ksenia
Join Date: Feb 2013
Posts: 2
Rep Power: 0
Aktigridia is on a distinguished road
imnull, could you please tell me in what field do you print this
300*1e-6 and etc ?

Thank you in advance!
Aktigridia is offline   Reply With Quote

Old   April 25, 2014, 09:34
Default
  #8
Member
 
Dmitry
Join Date: Nov 2011
Posts: 45
Rep Power: 14
imnull is on a distinguished road
Quote:
Originally Posted by Aktigridia View Post
imnull, could you please tell me in what field do you print this
300*1e-6 and etc ?
Thank you in advance!
here is a prtscrn (in pre-)
1234.jpg
Aktigridia likes this.
imnull is offline   Reply With Quote

Old   March 17, 2021, 05:45
Default
  #9
New Member
 
YangLu
Join Date: Sep 2020
Posts: 10
Rep Power: 5
yanglu is on a distinguished road
Can i use the 300*10,100*1 for the output frequency? I want to export the Trn results every 10 timestep in the first 300 timestep and every 1 timestep after 300 timestep?
yanglu is offline   Reply With Quote

Old   March 17, 2021, 06:23
Default
  #10
New Member
 
YangLu
Join Date: Sep 2020
Posts: 10
Rep Power: 5
yanglu is on a distinguished road
Hi, I tried to input the command from the prompt but it shows that the cfx5cmds command not found. Could you please tell me what I did wrong?
Thanks.
Yang

Last edited by yanglu; March 17, 2021 at 18:30.
yanglu is offline   Reply With Quote

Old   March 17, 2021, 09:27
Default
  #11
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Probably. But why not give it a try?
Gert-Jan is offline   Reply With Quote

Old   March 17, 2021, 16:44
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The OS probably cannot find the cfx5cmds command because it is not on the path. The best way to fix this is to use a command editor started from the CFX Launcher as that has all the paths correctly set. So redo it from a command line started from the CFX Launcher.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   March 17, 2021, 18:31
Default
  #13
New Member
 
YangLu
Join Date: Sep 2020
Posts: 10
Rep Power: 5
yanglu is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Probably. But why not give it a try?
It is impossible to input the multiply in the box. Maybe there is other way to do that.
yanglu is offline   Reply With Quote

Old   March 17, 2021, 18:36
Default
  #14
New Member
 
YangLu
Join Date: Sep 2020
Posts: 10
Rep Power: 5
yanglu is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Probably. But why not give it a try?
Quote:
Originally Posted by ghorrocks View Post
The OS probably cannot find the cfx5cmds command because it is not on the path. The best way to fix this is to use a command editor started from the CFX Launcher as that has all the paths correctly set. So redo it from a command line started from the CFX Launcher.
I need to load CFX first to use the command. But I want to edit the settings of the run in progress. I changed the timestep interval of the .def file but the simulation output frequency does not change.
yanglu is offline   Reply With Quote

Old   March 17, 2021, 18:47
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I am not sure edit run in progress is supported from the command line. The normal way of doing it is with the Solver Manager.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
heat generation in CFX Ema CFX 4 August 7, 2009 05:39
CFX 10's solutions differ from CFX 5.7's Atit Koonsrisuk CFX 4 July 26, 2006 11:59
CFX distributed computing: Cluster design Q Joe CFX 7 July 11, 2006 10:21
FSI using CFX and ANSYS Bi Chang CFX 2 May 10, 2005 04:47


All times are GMT -4. The time now is 08:31.