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

How to save viscous drag force and pressure drag force at each time step ?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2022, 05:05
Smile How to save viscous drag force and pressure drag force at each time step ?
  #1
New Member
 
Alexis DUBOIS
Join Date: Jun 2022
Posts: 2
Rep Power: 0
Alexis DUBOIS is on a distinguished road
Hello,

I would like to save pressure drag force and viscous drag force at each iteration or time step in a same file. I know how to save them in different files.

-> Results -> Compute forces -> Create a macro to save files at each iteration or time step.

However, I would like to save them in a same file like that :

Iteration Viscous Force Pressure Force Total Force
0 0.25 0.25 0.5
1 0.3 0.3 0.6
2 0.4 0.4 0.8
... ... ... ...

Can you help me ?

Have a nice day.
Alexis DUBOIS is offline   Reply With Quote

Old   July 12, 2022, 13:11
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
When Fluent asks to Overwrite? choose no and it will append instead. Or is your setup special and you do not get this prompt?
Alexis DUBOIS likes this.
LuckyTran is offline   Reply With Quote

Old   July 18, 2022, 04:54
Default
  #3
New Member
 
Alexis DUBOIS
Join Date: Jun 2022
Posts: 2
Rep Power: 0
Alexis DUBOIS is on a distinguished road
Thank you for your reply, it works.
Alexis DUBOIS is offline   Reply With Quote

Old   July 30, 2022, 09:28
Default
  #4
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
Can u share the macro to save file.
ebrahem is offline   Reply With Quote

Old   August 5, 2022, 04:44
Default
  #5
New Member
 
Augustin MOREL
Join Date: Aug 2022
Location: Paris, France
Posts: 3
Rep Power: 4
Augustin_MOREL is on a distinguished road
Quote:
Originally Posted by ebrahem View Post
Can u share the macro to save file.
Hi,

/report/forces/wall-forces no 2 () 1 0 yes "Report-drag-forces" yes

no : because I don't want a report for all zones
2 : the id of the zone that I want
1 : x-Component
0 : y-Component
yes : to write a file
"Report-drag-forces" : name of the file
yes : append new values in the same file

I write this in :
Solution > Calculation activities > Execute commands
Augustin_MOREL is offline   Reply With Quote

Old   August 6, 2022, 06:20
Default
  #6
Member
 
MEK
Join Date: Oct 2016
Posts: 39
Rep Power: 10
ebrahem is on a distinguished road
Thank u so much
ebrahem is offline   Reply With Quote

Reply

Tags
drag forces, fluent, pressure force, viscous force


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
Convergence problem of OF WUYing OpenFOAM Running, Solving & CFD 2 September 20, 2021 11:09
interDyMFoam with VOF + 6DOF instable pbalz OpenFOAM Running, Solving & CFD 11 October 9, 2020 06:19
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 11:42
Dam Break sigFpe Error aow OpenFOAM Running, Solving & CFD 2 May 24, 2018 15:32
udf for compute pressure drag force fatemi Fluent UDF and Scheme Programming 1 January 26, 2018 14:27


All times are GMT -4. The time now is 02:36.