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

Petty Question!

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2004, 05:22
Default Petty Question!
  #1
Anne
Guest
 
Posts: n/a
Hi All,

Sorry to ask such a petty Q.... In CFX4.4, one could cut and paste list of commands in the 'FC' file. Can one do this with the commands for 'def' in CFX5.6? There is something a wanted to test and cut and paste could be the ideal method for the test.

thanks, Anne
  Reply With Quote

Old   May 28, 2004, 08:18
Default Re: Petty Question!
  #2
matej
Guest
 
Posts: n/a
sure you can. first you generate your *.def file in cfx5pre. Then in a command line (sorry don't know how to do it in windows) use cfx5cmds -read -def *.def -text *.ccl (the ccl file must not exist) than you can (ea)silly cut and paste in any text editor of your choice. then you type cfx5cmds -write -def *.def -text *.ccl to write your version back to def file which you can run.

There is also more elegant way: you cut the settings you want to change in propper format to a text file, say "a.ccl". when running cfx5solve, you pass and argument -ccl a.ccl to add this setting to def file.

you'll find more by typing: cfx5solve -help

matej

ps: the cleariest way I've found how to do it is to define the things I want to alter as a CEL functions in expresion language. It's easy to find in a ccl )
  Reply With Quote

Old   May 28, 2004, 11:36
Default Re: Petty Question!
  #3
Anne
Guest
 
Posts: n/a
Hi Matej,

Thanks for the suggestion. That sounds to me like creating an output file from the 'def'. Suppose I have an out put file that was created from a def file which I do not have, can I work backwards (ie create the def file from out put file?) in the manner you have describe. I am in the process of trying your methods.

kind regards anne
  Reply With Quote

Old   May 28, 2004, 16:42
Default Re: Petty Question!
  #4
Robin
Guest
 
Posts: n/a
Hi Anne,

Yes, you can simply cut and paste. However, you do need to ensure you have the correct CCL path. For example, to modify an inlet boundary condition named "Inflow", you would need the apppropriate boundary condition objects with the FLOW and DOMAIN objects. You should see all of this if you simply click on the boundary condition object in the CFX-Pre object editor and choose "Edit in Command Editor".

To paste the object, paste it into the command editor and hit "Process".

If you want to load the entire physics definition from another case, simply go to the file menu, choose to open a CCL file, then change the filter to .cfx, .def or .res file. The physics from the selected file will be loaded without the mesh.

Regards, Robin
  Reply With Quote

Old   May 29, 2004, 12:27
Default Re: Petty Question!
  #5
Anne
Guest
 
Posts: n/a
Hi Robin and Matej,

Thanks. May be I need to say this...I work with CFX5.6 on windows 2000 platform. I encountered some problems when i tried the options you prescribed. No physics was loaded. I did this in Preprocess window:>File>Open Simulation> (I never saw Open CCL,did you mean import ccl?).. then tried to open a ccl file loading it as 'def'/'res'/cfx. There was an error message, the information on the interfaces could not be loaded. Is there an option of "opening xx.ccl file" in Preprocess?

..."Paste into the command editor and hit process". Sorry, i do not understand this. Do you mean the command editor that you obtain from the main window--->Tools--->Command line-->edit? I am unable to cut and paste my xx.CCL file into this editor.

I saved the output file as 'xx.ccl' to obtain my xx.ccl file that i tried to load in the preprocess, I am not sure whether this is correct!

Thanks for your time. Kind regards, Anne
  Reply With Quote

Old   May 31, 2004, 08:39
Default Re: Petty Question!
  #6
matej
Guest
 
Posts: n/a
Hi Anne,

you can paste your ccl commands into the cfx5pre into the command editor, which you find under the icon which looks like this:">_". cut and paste should work. sorry - I've got no windows experience.

You can also import the ccl (that is what probably Robin ment) with Import CCL file. However you cannot import the whole ccl into the empty pre, where you have no geometry loaded. Everytime the ccl commands the pre to presribe for example BC to nonexisting object, it will fail to load.Firs you must have some mesh loaded.

What you have to do is (1) if you geometry is the same - load it first to pre and then import the CCL, or (2) if there is something in CCL making problems, load only the other parts of CCL.

CCL is setting only physics and BC. it must be applied to some mesh in pre.

hope this helps, hope I'm not telling any nonseses. Robin please correct me.

matej

  Reply With Quote

Old   June 3, 2004, 03:38
Default Re: Petty Question!
  #7
Anne
Guest
 
Posts: n/a
Hi Matej,

Many thanks for your time and interest in my posting. I have now found a solution to my problem thro an alternative route.

regards anne
  Reply With Quote

Old   June 7, 2004, 09:56
Default Re: Petty Question!
  #8
Robin
Guest
 
Posts: n/a
Hi Anne,

The error you encountered when loading the CCL without a mesh was a bug in CFX-5.6 and has been fixed in CFX-5.7.

Regards,
  Reply With Quote

Old   June 7, 2004, 10:00
Default Re: thanks
  #9
Anne
Guest
 
Posts: n/a
Thanks Robin for the info.

regards anne
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unanswered question niklas OpenFOAM 2 July 31, 2013 16:03
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
question about uds tanven FLUENT 1 October 27, 2009 09:55
CHANNEL FLOW: a question and a request Carlos Main CFD Forum 4 August 23, 2002 05:55
question K.L.Huang CD-adapco 1 March 29, 2000 03:57


All times are GMT -4. The time now is 00:36.