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

cfx code?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Opaque
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2023, 15:59
Default cfx code?
  #1
New Member
 
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4
sasha- is on a distinguished road
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!
sasha- is offline   Reply With Quote

Old   September 6, 2023, 19:00
Default
  #2
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 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.
Opaque is offline   Reply With Quote

Old   September 7, 2023, 14:13
Default
  #3
New Member
 
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4
sasha- is on a distinguished road
Quote:
Originally Posted by Opaque View Post
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.
thank you for your response,
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!
sasha- is offline   Reply With Quote

Old   September 7, 2023, 17:54
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by sasha- View Post
thank you for your response,
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!
Use the Ansys CFX documentation, and search for operating maps, operating points.
sasha- 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   September 8, 2023, 10:58
Default
  #5
New Member
 
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4
sasha- is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Use the Ansys CFX documentation, and search for operating maps, operating points.
thank you very much I followed the steps in the documentation, but it seems something is wrong with my data file (the error says invalid format) when importing my input file. so I exported inlet file from another cfx-pre to copy the appropriate excel format, it contains spatial data (X,Y,Z)
I don't know how to apply various values for velocity inlet(cart.vel.components option), can you help me with this matter?
sasha- is offline   Reply With Quote

Old   September 8, 2023, 13:50
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by sasha- View Post
thank you very much I followed the steps in the documentation, but it seems something is wrong with my data file (the error says invalid format) when importing my input file. so I exported inlet file from another cfx-pre to copy the appropriate excel format, it contains spatial data (X,Y,Z)
I don't know how to apply various values for velocity inlet(cart.vel.components option), can you help me with this matter?
Post your setup for everyone to see, and suggest modifications/enhancements
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   September 9, 2023, 10:25
Default
  #7
New Member
 
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4
sasha- is on a distinguished road
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
sasha- is offline   Reply With Quote

Old   September 9, 2023, 12:53
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by sasha- View Post
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) Attachment 96116
How did you import that file? It seems to me like a profile data file.

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.
Opaque is offline   Reply With Quote

Old   September 9, 2023, 14:21
Default
  #9
New Member
 
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4
sasha- is on a distinguished road
Quote:
Originally Posted by Opaque View Post
How did you import that file? It seems to me like a profile data file.

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?
Honestly, I haven't slept in 2 days, so there is a big chance that I misunderstood the whole procedure. But my goal is to automate CFX to run multiple simulations with different velocities as you can see in my Excel file, one after the other, automatically, without me changing the values manually. This way, I can finally get some sleep. ))
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
sasha- is offline   Reply With Quote

Old   September 9, 2023, 15:36
Default
  #10
New Member
 
sasha
Join Date: Jun 2022
Posts: 17
Rep Power: 4
sasha- is on a distinguished road
I also used table data with index and the error persists!
sasha- is offline   Reply With Quote

Old   September 9, 2023, 16:18
Default
  #11
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by sasha- View Post
I also used table data with index and the error persists!
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--
sasha- 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

Reply

Tags
cfx, code, hpc


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
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


All times are GMT -4. The time now is 11:08.