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

Importing profile data in CFX

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

Like Tree3Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2017, 12:58
Default Importing profile data in CFX
  #1
Member
 
Join Date: Jun 2017
Posts: 40
Rep Power: 9
cardioCFD is on a distinguished road
Hello,

I have imported 3D profile data in cfx-pre and generated the def file without any problem.

However, when I move the def file to a high performance compter and run using command line, CFX stops saying that it cannot open the profile data file. Cannot open: path/to/my/data.csv.

The reason is obvious as I did not move the csv datafile on to the high performance computer.

I would appreciate if someone has a clue how I can address the profile data files when I run CFX from command line?

Thanks a lot.
cardioCFD is offline   Reply With Quote

Old   November 12, 2017, 18:13
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
On the cluster, just go to the location you saved the CSV files and use the command "pwd". that will tell you the current path and you can use that.

Or stick them in the same directory as all the other files. You will probably have to use ".." as the directory then as CFX actually runs, by default, in a directory generated off the current directory.
cardioCFD likes this.
ghorrocks is online now   Reply With Quote

Old   November 13, 2017, 04:26
Default
  #3
Member
 
Join Date: Jun 2017
Posts: 40
Rep Power: 9
cardioCFD is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
On the cluster, just go to the location you saved the CSV files and use the command "pwd". that will tell you the current path and you can use that.

Or stick them in the same directory as all the other files. You will probably have to use ".." as the directory then as CFX actually runs, by default, in a directory generated off the current directory.
Hi,

Thanks a lot. So if I understood correctly, you are saying that I need to copy the csv file into the cluster and edit the ccl file specifying the path to the csv on the cluster, yes?

Many thanks
cardioCFD is offline   Reply With Quote

Old   November 13, 2017, 18:19
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes that is right
cardioCFD likes this.
ghorrocks is online now   Reply With Quote

Old   November 14, 2017, 04:54
Default
  #5
Member
 
Join Date: Jun 2017
Posts: 40
Rep Power: 9
cardioCFD is on a distinguished road
Thanks Glenn
cardioCFD is offline   Reply With Quote

Old   May 17, 2022, 16:35
Default
  #6
New Member
 
Nicolas Sargi
Join Date: May 2022
Posts: 7
Rep Power: 4
nicolas.sargi is on a distinguished road
Hello.

I already have my .csv file for my 3D profile data on the clusters.

The issue is within specifying the path:
1. If the path is in my local drive instead than on the cluster, then it is impossible for the cluster to find it.
2. If specified path is the cluster one, then my .def file gets corrupted and I cannot run it on the clusters.

The errors are obvious to me, but I wondered how you solved this issue.

Can you please be more specific for the steps, since I am now facing the same issue that you faced 5 years ago?

Thanks,
Nicolas
nicolas.sargi is offline   Reply With Quote

Old   May 17, 2022, 17:43
Default
  #7
Senior Member
 
Join Date: Jun 2009
Posts: 1,875
Rep Power: 33
Opaque will become famous soon enough
Which Ansys CFX version are you using?

To make my setup independent of the path, I have used a relative path, say "./myfile.csv" instead of a full path "/home/user/myfile.csv".

I used Linux syntax, something similar for Windows, just .\myfile.csv
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   May 17, 2022, 20:53
Default
  #8
New Member
 
Nicolas Sargi
Join Date: May 2022
Posts: 7
Rep Power: 4
nicolas.sargi is on a distinguished road
Hello.

Thanks for your answer.

I am using ANSYS 2021R1.

My local Ansys is Windows-based, while the clusters run on a Linux Machine.

Is there a way to run my simulation in this parallel environment by re-defining the path in the .def file that I generate locally?

Nicolas Sargi
nicolas.sargi is offline   Reply With Quote

Old   May 17, 2022, 20:57
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,862
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You can edit the def file cfx5cmds command line. Look at the CFX documentation for this command line option. You can also specify to add CCL at run time with the cfx5solve command (or from the Solver manager).
Opaque likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is online now   Reply With Quote

Old   September 30, 2023, 05:14
Default
  #10
New Member
 
Vids
Join Date: Feb 2021
Posts: 5
Rep Power: 5
Viddesh is on a distinguished road
Quote:
Originally Posted by nicolas.sargi View Post
Hello.

I already have my .csv file for my 3D profile data on the clusters.

The issue is within specifying the path:
1. If the path is in my local drive instead than on the cluster, then it is impossible for the cluster to find it.
2. If specified path is the cluster one, then my .def file gets corrupted and I cannot run it on the clusters.

The errors are obvious to me, but I wondered how you solved this issue.

Can you please be more specific for the steps, since I am now facing the same issue that you faced 5 years ago?

Thanks,
Nicolas
Hello Nicolas,
In cfx pre there is an option to store the csv file locally rather than referencing it from a specific path.
In the "Initialize profile data" dialog box just select profile data storage option as "copy profile data into setup". This will make a local copy of your csv file in cfx pre. Note that any changes you make in the original csv shall not be reflected unless you re initialize the data .
In this way the .def file will never ask for path of your csv file.

Hope this helps anyone who stumbles upon this problem with their CFD analysis.

Regards
VB
Viddesh is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ansys CFX 14.5 + trasnient "initialize profile data" lentschi CFX 4 June 28, 2013 08:15
Importing NACA0021 airfoil data into CFX dougie CFX 2 May 13, 2012 07:50
who can give me profile data about nasa 37 or 67?? hitleo Main CFD Forum 2 June 1, 2011 10:34
Importing CFX10 data into CFX 11 Stephen CFX 0 May 9, 2007 07:55
CFXSolver Error Message using Profile Data on B Tobias CFX 0 August 26, 2005 08:27


All times are GMT -4. The time now is 19:33.