CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] implementation with OF2.3.0 (https://www.cfd-online.com/Forums/openfoam-community-contributions/167140-implementation-of2-3-0-a.html)

arsalan.dryi February 24, 2016 05:28

implementation with OF2.3.0
 
Dear Foamers,

I'm trying to use swak4Foam libraries in my new solver that compiled completely and runs successfully without swak implementation, my simulation is a gas-liquid two phase flow with solid body motion mesh. My swak expression that i have added to the controlDict dictionary is shown below :
Code:

libs (
    "libOpenFOAM.so"
    "libtwoPhaseInterfaceProperties.so"
    "libinterfaceProperties.so"
    "libsimpleSwakFunctionObjects.so"
    "libswakFunctionObjects.so"
    "libotransitionalParabolicVelocityFvPatchVectorField.so"
    "libswakTopoSources.so"
    "libgroovyBC.so"
);

functions
(
    createInterface
    {
        type createSampledSurface;
        outputControl timeStep;
        outputInterval 1;
        surfaceName interface;
        surface {
            type isoSurface;
            isoField alpha1;
            isoValue 0.5;
            interpolate true;
              }
    }

    Yheight
    {
   
        type swakExpression;
        valueType surface;
        surfaceName interface;
        verbose true;
        expression "pos().y";
        accumulations (
            min
            max
        );       
    }
)

but when i run my solver i get the following error :
Code:

It seems that the method simpleFunctionObject::movePoints is not properly implemented (neither in the class or  any appropriate subclasses).
If you think that it should work anyway add the entry

ignore_unimplemented_simpleFunctionObject::movePoints true;

to the dictionary ".Yheight" and we will go on. Alternativly properly implement the method.

Anyway: I'll go die now



--> FOAM FATAL ERROR:
Not implemented

    From function simpleFunctionObject::movePoints
    in file helpers/switchableNotImplemented.C at line 85.

FOAM aborting

It should be noted that i ignored the FOAM Warnings like these :
Code:

--> FOAM Warning :
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1179
    dlopen error : libtwoPhaseInterfaceProperties.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
    From function dlLibraryTable::open(const fileName&, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
    could not load "libtwoPhaseInterfaceProperties.so"
--> FOAM Warning :
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1179
    dlopen error : libotransitionalParabolicVelocityFvPatchVectorField.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
    From function dlLibraryTable::open(const fileName&, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
    could not load "libotransitionalParabolicVelocityFvPatchVectorField.so"

swak4Foam: Allocating new repository for sampledSurfaces
--> FOAM Warning :
    From function simpleFunctionObject::simpleFunctionObject
    in file simpleFunctionObject/simpleFunctionObject.C at line 109
    'outputControlMode' not found in Yheight
Assuming: timeStep
--> FOAM Warning :
    From function simpleFunctionObject::simpleFunctionObject
    in file simpleFunctionObject/simpleFunctionObject.C at line 117
    'outputInterval' not found in Yheight
Assuming: 1
swak4Foam: Setting default mesh

My operating system is Ubuntu 12.04 and the Swak version is 0.3.2 (Release date: 2015-05-31) that compiled successfully (since i use this version in OF 2.2.1 without any problem).

Any comments and discussion is greatly appreciated !
Apologies for the long post.

Thank you.

Best Regards,
Arsalan.


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