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

command editor in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2020, 13:26
Default command editor in CFX
  #1
Member
 
Join Date: Oct 2017
Posts: 35
Rep Power: 9
Safasml is on a distinguished road
Hi
Can anybody help me with how to read a file (for example a .txt file) in command editor in CFX?
For example, the temperature at the inlet is 288 [K] in my case. I want to write this temperature in a text file and ask CFX to read this text file.
Also for the velocity… the velocity is constant and is equal to 100 m/s in the x-direction. Should the text file have a particular format?
Attached Images
File Type: png command editor.png (20.2 KB, 41 views)
Safasml is offline   Reply With Quote

Old   March 17, 2020, 14:44
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Why are you using the command editor? It is to be used for advanced work, and/or workarounds.

For basic setup steps, you should be using the appropriate panel.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   March 17, 2020, 15:05
Default
  #3
Member
 
Join Date: Oct 2017
Posts: 35
Rep Power: 9
Safasml is on a distinguished road
Thanks for your quick response.
But, how can I do this without using the command editor?
I don’t want to specify and type the (for example) temperature in the “static temperature” panel. I want the temperature to be read from a text file.
Safasml is offline   Reply With Quote

Old   March 17, 2020, 16:43
Default
  #4
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23
evcelica is on a distinguished road
Make a user function in CFX Pre. Use that user function as your (static temperature)
MyInletTemperture(t)
evcelica is offline   Reply With Quote

Old   March 17, 2020, 21:30
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Please read the documentation, and search for "profile data" functionality,

You must create your text file following very specific guidelines, you can load the file in CFX-Pre via Initialize Profile Data, and then connect the different files and columns of a file to specific entries in the panels.

Either way, you must visit the panel at least once to take advantage of some automation. Once you understand the workflow, you can try and scripted via CCL commands if you are inclined to do so. But first, you need to work through the steps one by one to understand the connectivity of the information
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   March 18, 2020, 06:49
Default
  #6
Member
 
Join Date: Oct 2017
Posts: 35
Rep Power: 9
Safasml is on a distinguished road
Dear evcelica and Opaque...
Thanks for your reply… the ideas were great!
Safasml 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
CFX Treatment of Laminar and Turbulent Flows Jade M CFX 18 September 15, 2022 08:08
High Resolution (CFX) vs 2nd Order Upwind (Fluent) gravis ANSYS 3 March 24, 2011 03:43
CFX pressure in Simulations problem nasdak CFX 1 April 14, 2010 14:22
PhD using CFX Rui CFX 9 May 28, 2007 06:59
FSI using CFX and ANSYS Bi Chang CFX 2 May 10, 2005 05:47


All times are GMT -4. The time now is 13:55.