AndresP |
March 25, 2022 18:36 |
forceCoeffsIncompressible writes to multiple files
Hello everyone,
I'm having trouble with the postProcess utility (OpenFOAM .org v7). I have an already simulated transient case and would like to compute force coefficients for each timestep. I have a forceCoeffsIncompressible dictionary with the corresponding parameters set in my /system directory. I'm running the postProcess utility through:
Code:
pimpleFoam -postProcess -func forceCoeffsIncompressible
My understanding (unless I'm remembering incorrectly) is that I should get a single forceCoeffs.dat file in the /postProcessing/*/forceCoeffsIncompressible directory, with the coefficients for each timestep tabulated. However, the utility writes multiple files named forceCoeffs_*.dat , where * is the time associated with the coefficients in the file. Each file has the correct format but only one row in that table I refer to. For example, for forceCoeffs_1.005.dat:
Code:
# Force coefficients
# liftDir : (0.000000000000e+00 1.000000000000e+00 0.000000000000e+00)
# dragDir : (1.000000000000e+00 0.000000000000e+00 0.000000000000e+00)
# pitchAxis : (0.000000000000e+00 0.000000000000e+00 1.000000000000e+00)
# magUInf : 8.300000000000e-01
# lRef : 3.500000000000e-02
# Aref : 1.940000000000e-03
# CofR : (3.000000000000e-01 3.000000000000e-01 8.000000000000e-02)
# Time Cm Cd Cl Cl(f) Cl(r)
1.005 -6.941911664379e+00 9.463867864485e-02 9.457727060475e-01 -6.469025311356e+00 7.414798017403e+00
Only the row for t=1.005s is written.
Am I doing something wrong or is this how the utility normally works? I have spent quite some time looking for a solution on the Internet but so far I've found nothing, even on these forums.
I'd like to get a single forceCoeffs.dat with the coefficients for each time one under another (i.e. tabulated). Could someone point me in the right direction? I'd appreciate it.
Regards,
Andrés
|