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

Automatisation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2003, 09:19
Default Automatisation
  #1
Deb
Guest
 
Posts: n/a
Hello!

I'd like to run successively and automatically several calculations with different inlet velocities. How can I do that ?

Thanks.
  Reply With Quote

Old   April 2, 2003, 09:51
Default Re: Automatisation
  #2
Louwrens
Guest
 
Posts: n/a
Hi Deb

If you're using CFX 5.5 its done like this:

You can write a batch file to run different *.def files. First you have to create all you def files with the different inlet velocities.

next you create a DOS batch file with the following structure:

cfx5solve -def 1stdeffile.def cfx5solve -def 2nddeffile.def

and so on. This of course assumes that the grid is contained in the def file. If you want to use the results of a previous calculation as initial conditions, the structure command structure is:

cfx5solve -def newdeffile.def -ini oldresults.res

To run the def files, you click on "Command line" under the Tools menu of the CFX 5.5 launcher. This pops up a DOS window, from which you can just run your batch file.

You can of course include all the standard DSO commands in the batch file as well, if you want the different runs in their own directories for instance.

Cheers

Louwrens
  Reply With Quote

Old   April 3, 2003, 12:25
Default Re: Automatisation
  #3
Bart Prast
Guest
 
Posts: n/a
Do it with ccl files

create different ccl files and do: cfx5cmds.exe -write -def yourdeffile.def -text newcclfile.ccl

saves you a couple of def files which you do not need instead of using the def files you can do it on the latest res file as well. So create as many ccl files as you have inlet velocities.
  Reply With Quote

Old   April 4, 2003, 11:07
Default Re: Automatisation
  #4
Deborah
Guest
 
Posts: n/a
Hi Louwrens !

Thanks for advice but the command : cfx5solve -def first.def cfx5solve -def second.def doesn't work on CFX 5.5.1. I have also tried cfx5solve -def first.def -def second.def and only second.def is executed. And there is no answer for this problem in cfx5solve -help.
  Reply With Quote

Old   April 4, 2003, 11:38
Default Re: Automatisation
  #5
Louwrens
Guest
 
Posts: n/a
Hey Deborah

That should be:

cfx5solve -def first.def THEN NEXT LINE

cfx5solve -def second.def THEN NEXT LINE

Each of these are separate DOS commands. Hope that clears it up. It does work with 5.5.1 cos thats what I'm using... ;-)

L
  Reply With Quote

Old   April 5, 2003, 17:23
Default Re: Automatisation
  #6
Robin
Guest
 
Posts: n/a
Hi Deb,

Here's a tip in addition to the suggestions below. If all you need to do is change the value of a parameter, the pressure at a boundary for instance, you can do so by simply creating an additional file with the appropriate CCL and telling the solver to read the CCL from that file using the '-ccl' option.

For instance, to change the ralative pressure at the boundary named "Inflow" within the Domain "Domain 1" you would save a file (let's call it inflow.ccl) with the following CCL:


FLOW:
DOMAIN: Domain 1
BOUNDARY : Inlet
BOUNDARY CONDITIONS :
MASS AND MOMENTUM :
Option = Stationary Frame Total Pressure
Relative Pressure = 1.325E3 [Pa]
END # MASS AND MOMENTUM
END # BOUNDARY CONDITIONS
END # BOUNDARY: Inflow
END # DOMAIN: Domain 1
END # FLOW


The following command would use your new boundary condition:

cfx5solve -def myRun.def -ccl inflow.ccl

Alternatively, you could restart from the existing solution:

cfx5solve -def myRun_001.res -ccl inflow

This can all be put together into a fairly simple perl script or batch file.

Regards,
Robin
  Reply With Quote

Old   April 6, 2003, 04:44
Default Re: Automatisation
  #7
Louwrens
Guest
 
Posts: n/a
This seems way less trouble than my solution... I suppose you can use the same thing to change advection schemes, turbulence models etc..? One question, does the file contain JUST the part of the CCL that is different from that in the *def file??
  Reply With Quote

Old   April 7, 2003, 15:07
Default Re: Automatisation
  #8
Robin
Guest
 
Posts: n/a
Yes. Any CCL objects in the file will overwrite the existing ones. Only the CCL parameters you are changing need to be included.

If you think this is cool, just wait until you get your hands on CFX-Pre. You can do all this within Pre. And with Power Syntax (Perl) you can put it in a loop, firing off multiple runs one after the other!

Regards, Robin
  Reply With Quote

Old   April 8, 2003, 04:21
Default CFX-Pre
  #9
Louwrens
Guest
 
Posts: n/a
Wanted to ask about that: From the website I gather the pre-processor is not going to be Patran-based any more... Where should we expect major differences?
  Reply With Quote

Old   April 8, 2003, 14:14
Default Re: CFX-Pre
  #10
Robin
Guest
 
Posts: n/a
Hi Louwrens,

As of 5.6, CFX-Build will be reduced to geometry and mesh generation. CFX-Pre will take over from the point where you have a mesh (coming from many sources, not just build).

CFX-Pre has been built off the same foundation classes as CFX-Post and looks very much like CFX-Post, there is no resemblance to Build. The interface is faster, more intuitive, and more flexible than Build was and makes pre-processing much simpler.

In addition, the underlying language is CCL, making CFX-Pre much easier to automate. As with CFX-Post, the entire Perl programming language is available through Power Syntax, making CFX-Pre a very flexible pre-processor.

There are a few others on the forum who have been running the beta version. They may be willing to add their comments.

Best regards, Robin
  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 22:19.