philipmorrisintl / aerosolved

AeroSolved is a Computational Fluid Dynamics code, based on the OpenFOAM software package, for simulation of the generation, transport, evolution and deposition of multispecies aerosol mixtures.
GNU General Public License v3.0
54 stars 32 forks source link

Compilation error #5

Open asochan opened 2 years ago

asochan commented 2 years ago

I tried compiling Aerosolved on Ubuntu 20.04 with OpenFoam v2112, v2012, v1912 (older versions are not available using apt-get). In every case, the problem is an error in the file: libraries/aerosolModels/functionObjects/sampleFlux/sampleFlux.C on line 152 - function or method "writeTime" is unknown. Is it possible to fix this error?

f-lucci commented 2 years ago

The current version of AeroSolved in GitHub is tested for v1906 About .

If later OF versions are required, for now, we suggest to try the edits of Mark Olesen Link.

thank you for Trying AeroSolved

TBE-ThomasTian commented 2 years ago

Hi,

this help for OF 2021+: file: libraries/aerosolModels/functionObjects/sampleFlux/sampleFlux.C on line 152 :

bool Foam::functionObjects::sampleFlux::write() { if (Pstream::master()) { forAll(names(), filei) { //writeTime(files(filei)); writeCurrentTime(files(filei)); <------ FIX } }

Bye Tian

asochan commented 2 years ago

Hi,

this help for OF 2021+: file: libraries/aerosolModels/functionObjects/sampleFlux/sampleFlux.C on line 152 :

bool Foam::functionObjects::sampleFlux::write() { if (Pstream::master()) { forAll(names(), filei) { //writeTime(files(filei)); writeCurrentTime(files(filei)); <------ FIX } }

Bye Tian

Now compiles with OF 2012, but not with either OF2106 or OF2112. But that's enough for me :) Thanks