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/)
-   -   [waves2Foam] Problems with the compilation of the third party dependencies (https://www.cfd-online.com/Forums/openfoam-community-contributions/205767-problems-compilation-third-party-dependencies.html)

chia87 February 9, 2017 10:16

Problems with the compilation of the third party dependencies
 
COMPILE OCEANWAVE3D
=====================================

Cloning the OceanWave3D git repository ...
Cloning into 'OceanWave3D-Fortran90'...
remote: Counting objects: 5013, done.
remote: Total 5013 (delta 0), reused 0 (delta 0), pack-reused 5013
Receiving objects: 100% (5013/5013), 16.60 MiB | 6.21 MiB/s, done.
Resolving deltas: 100% (3750/3750), done.
Checking connectivity... done.

Set the environmental variables for waves2Foam
Exiting compilation process


## COMPILE THIRD PARTY DEPENDENCIES (cd ThirdParty; ./Allwmake)
if [[ $? -ne 0 ]] then echo "" echo "Problems with the compilation of the third party dependencies" echo "Exiting" echo "" exit fi



Problems with the compilation of the third party dependencies
Exiting


....
Hi all, I'm compiling wavefoam on a seperate workstation, and am encountering problems with ./Allwmake
Any help is greatly appreciated , thanks in advanced :)

ngj February 11, 2017 11:33

Good afternoon,

@Chia: You are missing dependencies (at least git).

Kind regards,

Niels

chia87 February 14, 2017 09:03

Dear Niels,

Thanks for your help, i resolved the git issue earlier on

Currently I'm faced with this problem

Code:

readWaveProperties.H:1:1: error: ‘S’ was not declared in this scope
 S    Info << "\nReading waveProperties" << endl;
 ^
In file included from waveFoam.C:80:0:
createFvOptions.H:1:1: error: ‘IOoptionList’ is not a member of ‘Foam::fv’
 fv::IOoptionList fvOptions(mesh);
 ^
waveFoam.C:83:5: error: ‘turbulence’ was not declared in this scope
    turbulence->validate();
    ^
In file included from waveFoam.C:88:0:
CourantNo.H:39:29: error: ‘phi’ was not declared in this scope
        fvc::surfaceSum(mag(phi))().internalField()
                            ^
In file included from waveFoam.C:102:0:
setRDeltaT.H:63:33: error: ‘phi’ was not declared in this scope
            fvc::surfaceSum(mag(phi))().dimensionedInternalField()
                                ^
setRDeltaT.H:64:33: error: ‘rho’ was not declared in this scope
            /((2*maxCo)*mesh.V()*rho.dimensionedInternalField())
                                ^
setRDeltaT.H:80:17: error: ‘reaction’ was not declared in this scope
            mag(reaction->Sh())/(alphaTemp*rho*thermo.Cp()*T)
                ^
setRDeltaT.H:80:44: error: ‘rho’ was not declared in this scope
            mag(reaction->Sh())/(alphaTemp*rho*thermo.Cp()*T)
                                            ^
setRDeltaT.H:80:48: error: ‘thermo’ was not declared in this scope
            mag(reaction->Sh())/(alphaTemp*rho*thermo.Cp()*T)
                                                ^
In file included from waveFoam.C:106:0:
CourantNo.H:39:29: error: ‘phi’ was not declared in this scope
        fvc::surfaceSum(mag(phi))().internalField()
                            ^

I've installed OpenFOAM, and am compiling wavefoam, am following the instructions of chapter 8 (http://openfoamwiki.net/index.php/Co...d_Installation )

currently managed to compiled the library, pre & post processing,
however Im having troubles with compiling the solvers

I realised most of the error are functions that ain't declared
Is there any editions i should do to 'declare' the functions?

error: ‘IOoptionList’ is not a member of ‘Foam::fv’ <-- how do I resolve this issue?

ngj February 15, 2017 13:07

Hallo Chia,

I cannot help, since you give very little information. Where are the errors? What is the version of OF and waves2Foam? Have you modified something? Generating your own solver?

Please provide information where applicable.

Kind regards

Niels

chia87 March 3, 2017 10:29

Dear Niels,
I managed to solve the problem and get it running

Code:

GAMG:  Solving for pcorr, Initial residual = 1, Final residual = 6.68278e-08, No Iterations 27
GAMG:  Solving for pcorr, Initial residual = 3.31779e-08, Final residual = 3.31779e-08, No Iterations 0
time step continuity errors : sum local = 2.21897e-17, global = 1.65833e-18, cumulative = 1.65833e-18
Courant Number mean: 0.00026753 max: 0.183413

Starting time loop



--> FOAM FATAL ERROR:
Unknown function type surfaceElevation

Valid functions are :

4
(
patchProbes
probes
sets
surfaces
)

my controldict as below
Code:

functions
{
    #includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_controlDict";
}

my surfaceelevationanyname_controldict as below
Code:

    surfaceElevationAnyName
    {
        type              surfaceElevation;
        functionObjectLibs ( "libwaves2Foam.so" );

        outputControl      timeStep; // Alternative: outputTime
        outputInterval      1;

        //Additional output controls in waves2Foam
        //samplingStartTime  -1;
        //surfaceSampleDeltaT 0.025;

        setFormat          raw;
        interpolationScheme cellPointFace;
        fields (alpha.water);

        #includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_sets";

    }

is it due to my wavefoam not compiling properly? If i remove the surfaceelevation function, i could run it normally, however I would be needing to record the surface elevation,

thanks for the help previously

Chia

gautami March 3, 2017 10:53

Hello Chia,

It may or may not work, but worth trying:

In the controlDict dictionary after the

functions
{
#includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_controlDict";
}

Please include the following:

libs
(
"libwaves2Foam.so"
"libwaves2FoamProcessing.so"
"libwaves2FoamSampling.so"
);

Most&More,
Gautami Erukulla.

chia87 March 3, 2017 11:50

Thanks alot Gautami!

It worked!

Kun_zheng May 20, 2017 06:04

Quote:

Originally Posted by chia87 (Post 639346)
Thanks alot Gautami!

It worked!

Hi Chia,

I also need the record of elevation. Could u give more details about how to make the "surfaceElevation" works? I used same input files (controldict, surfaceelevationanyname_controldict) as u, but it could not work well.

Thank u !


All times are GMT -4. The time now is 13:10.