|
[Sponsors] |
September 6, 2023, 15:59 |
cfx code?
|
#1 |
New Member
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4 |
Hi everybody! hope you're doing great!
I need to create a dataset from my simulation with different velocities and angles of attack, so I might run cfx around 500 times for the same model. I am using HPC and running procedure will be done really quickly! my question is that is there any code I can use to start runs automatically one after the other? I would be grateful if you attach some related links or resources that I can use to learn how to do it! |
|
September 6, 2023, 19:00 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Please read the documentation, and search for operating maps/points feature.
You need to list the values of the parameters of interests to be varied. Submit the run, and done. If you have enough resources, it can do several at the same time, and each one in parallel if you want to domain decompose your model. You can monitor all the simultaneous runs on a single SolverManager session. This "problem" has been solved for a few years already. Perhaps you can customize it further, but the skeleton is already there to be dressed up.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
September 7, 2023, 14:13 |
|
#3 | |
New Member
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4 |
Quote:
what do you mean by "the documentation"? I forgot to mention that Im working on windows, I've searched before and found something about Linux that cant help me! I am really new on this topic and short on time and your response would be a great help to me! |
||
September 7, 2023, 17:54 |
|
#4 | |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Quote:
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
September 8, 2023, 10:58 |
|
#5 | |
New Member
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4 |
Quote:
I don't know how to apply various values for velocity inlet(cart.vel.components option), can you help me with this matter? |
||
September 8, 2023, 13:50 |
|
#6 | |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Quote:
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
September 9, 2023, 10:25 |
|
#7 |
New Member
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4 |
well as I mentioned earlier, I followed the cfx guide steps about operating points in cfx pre. while importing my data table, I get the error about invalid format. I attach a screenshot on which everything is demonstrated. (the excel file on the right and the error on the left) Screenshot (36).jpg
|
|
September 9, 2023, 12:53 |
|
#8 | |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
Quote:
If I recall correctly, the operating maps uses "tables" with an index, not a profile with coordinates. Are we mixing vocabularies, or a misunderstanding of your goals?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
September 9, 2023, 14:21 |
|
#9 | |
New Member
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4 |
Quote:
Could you please tell me what you mean by 'tables with an index'? I tried to find the proper format for an Excel file with different velocities to be imported, but I obviously failed |
||
September 9, 2023, 15:36 |
|
#10 |
New Member
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4 |
I also used table data with index and the error persists!
|
|
September 9, 2023, 16:18 |
|
#11 |
Senior Member
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33 |
The image in the Excel spreadsheet indicates an incorrect format for either profile or table.
From the Ansys CFX documentation, there is an example [Name] Compressor Operating Points [Index Fields] Index [Data] Index, massFlow [kg s^-1], speed [rev min^-1] 1, 1.23000002e+00, 1.45000000e+03 2, 1.24000001e+00, 1.55000000e+03 3, 1.25000000e+00, 1.65000000e+03 4, 1.27999997e+00, 1.78000000e+03 #-- End of profile Input Table--
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Tags |
cfx, code, hpc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Couple CFX with in-house code via user Fortran | hcs129 | CFX | 11 | August 20, 2020 10:16 |
CFX Solver Error: return code 255 | Riley | CFX | 11 | February 5, 2020 18:12 |
How to use user code in CFX | Ugee | CFX | 7 | January 22, 2020 17:48 |
Particle tracking in CD nozzle error:The ANSYS CFX solver exited with return code 4 | lcui | CFX | 0 | September 9, 2019 21:58 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |