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

referencing profile .csv file when solving on HPC

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By ghorrocks
  • 1 Post By cole18
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2021, 00:01
Default referencing profile .csv file when solving on HPC
  #1
New Member
 
Join Date: Jul 2021
Posts: 6
Rep Power: 5
cole18 is on a distinguished road
I am trying to run a simulation on my universities cluster to find the aerodynamic damping of an airfoil. I am using mesh deformation with a .csv file from a modal analysis for the profile. I am setting up the simulation on my PC so the profile is pointing towards the .csv file on my computer. The issue I am having now is when I transfer the .def file onto the cluster and try to run it, it cannot find the profile .csv file which is on my computer. Even if I transfer the .csv file also it is still trying to search in the wrong place for it. Is there any way I can get it set up so it will be able to find the csv file while running on the cluster?
cole18 is offline   Reply With Quote

Old   July 10, 2021, 00:43
Default
  #2
Senior Member
 
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 9
aero_head is on a distinguished road
I have done what you are describing, so I know it is possible. Are you sure you saved the csv file to the correct folder? Where are you trying to save it and where is it trying to search for it?
aero_head is offline   Reply With Quote

Old   July 10, 2021, 00:51
Default
  #3
New Member
 
Join Date: Jul 2021
Posts: 6
Rep Power: 5
cole18 is on a distinguished road
I have the csv file in the same folder as the .def file on the cluster. The problem is the path to that file is different on the cluster vs. my computer. So in CFX pre it was set up pointing to the file but that path does not exist on the cluster which is causing the error where it cannot find it.
cole18 is offline   Reply With Quote

Old   July 10, 2021, 00:54
Default
  #4
Senior Member
 
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 9
aero_head is on a distinguished road
Oh, so you're running the simulation with a bash script?
aero_head is offline   Reply With Quote

Old   July 10, 2021, 00:54
Default
  #5
New Member
 
Join Date: Jul 2021
Posts: 6
Rep Power: 5
cole18 is on a distinguished road
Yup, I'm running it with a bash script.
cole18 is offline   Reply With Quote

Old   July 10, 2021, 01:03
Default
  #6
Senior Member
 
Kira
Join Date: Nov 2020
Location: Canada
Posts: 435
Rep Power: 9
aero_head is on a distinguished road
Ah, okay. Sorry, I have only done this with CFX installed on the HPC I was using. I do not know why it isn't working for you... Can't you change the path in the script?
aero_head is offline   Reply With Quote

Old   July 10, 2021, 01:22
Default
  #7
New Member
 
Join Date: Jul 2021
Posts: 6
Rep Power: 5
cole18 is on a distinguished road
If you can change the path in the script I am not aware of how. Looking at the documentation for cfx5solve I don't see any option that seems like it would change the path.
cole18 is offline   Reply With Quote

Old   July 10, 2021, 05:17
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Try changing the path to the csv file to .\FileName.csv, and keep the csv file in the local directory. Hopefully it does not resolve that to the absolute path and just keeps it as a relative path.
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 10, 2021, 10:22
Default
  #9
New Member
 
Join Date: Jul 2021
Posts: 6
Rep Power: 5
cole18 is on a distinguished road
That didn't work but trying to do that I figured it out. There was a drop down with default setting of referencing external file that has the option to copy profile data into the file so that ended up working for me. Thanks for all of the help.
aero_head likes this.
cole18 is offline   Reply With Quote

Old   July 10, 2021, 15:24
Default
  #10
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
What version of the software are you running?

Later versions allow you to include the .csv file into the definition file during import; therefore, there is no longer a need to keep your imported .csv files around.

The cfx5solve script will extract the file at run-time wherever the simulation is being executed.
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   July 10, 2021, 18:09
Default
  #11
New Member
 
Join Date: Jul 2021
Posts: 6
Rep Power: 5
cole18 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
What version of the software are you running?

Later versions allow you to include the .csv file into the definition file during import; therefore, there is no longer a need to keep your imported .csv files around.

The cfx5solve script will extract the file at run-time wherever the simulation is being executed.
2020r2. Yup that worked. I had missed that option earlier because I didn’t think it would have any useful options in the drop down but it did. Thanks
cole18 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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 21:09.