blueCFD / lagrangianExtraFunctionObjects

Function object library re-adapted from OpenFOAM 5, to write to disk in the old positions file format.
GNU General Public License v3.0
19 stars 3 forks source link

didn't work for sprayCloud #2

Closed FR13ndSDP closed 2 years ago

FR13ndSDP commented 4 years ago

Hi, wyldckat

Thanks for your great work. I have OpenFOAM 7.0 running on WSL ubuntu, and use Paraview.exe to do post processing. It worked fine to me when I run tutorial case MPPICFoam_column, it worked and generated positions.orig. But when i try to do the same thing in tutorial case /sprayFoam/aachenBomb, it did not generate .orig file. It confused me. Here is the code block I added to the controlDict:

functions
{
    #includeFunc Qdot          //it's in the original controlDict
    writeCloudOldStyle1
    {
        type        writeCloudOldStyle;
        libs        ("liblagrangianExtraFunctionObjects.so");

        writeControl writeTime;

        clouds
        (
            sprayCloud
        );
    }
}
wyldckat commented 4 years ago

@FR13ndSDP: I've merged @ZhangYanTJU's pull request #3 a few minutes ago and it should now support this capability which you have asked for!

Please let us know if it works as intended!

FR13ndSDP commented 4 years ago

@wyldckat : Thank you all, it works! 👍 There is one thing I noticed that if writeFormat in controlDict is set to binary, then reconstructPar and post processing would have problem because the positions file is in ascii. Is there a way to change write format of positions ?

FR13ndSDP commented 4 years ago

@FR13ndSDP By the way, header of position.orig is wrong when writeFormat is set to binary