CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Problems with the compilation of the third party dependencies

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2017, 10:16
Default Problems with the compilation of the third party dependencies
  #1
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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

Last edited by chia87; February 9, 2017 at 11:24.
chia87 is offline   Reply With Quote

Old   February 11, 2017, 11:33
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good afternoon,

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

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.

Last edited by wyldckat; August 24, 2018 at 19:27. Reason: Copied from original post and removed answers to the other posts on other threads
ngj is offline   Reply With Quote

Old   February 14, 2017, 09:03
Default
  #3
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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?
chia87 is offline   Reply With Quote

Old   February 15, 2017, 13:07
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   March 3, 2017, 10:29
Default
  #5
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
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
chia87 is offline   Reply With Quote

Old   March 3, 2017, 10:53
Default
  #6
Member
 
Gautami Erukulla
Join Date: Mar 2009
Posts: 71
Rep Power: 17
gautami is on a distinguished road
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.
gautami is offline   Reply With Quote

Old   March 3, 2017, 11:50
Default
  #7
Member
 
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
chia87 is on a distinguished road
Thanks alot Gautami!

It worked!
chia87 is offline   Reply With Quote

Old   May 20, 2017, 06:04
Default
  #8
New Member
 
Kun Zheng
Join Date: May 2017
Location: Harbin, China
Posts: 20
Rep Power: 8
Kun_zheng is on a distinguished road
Quote:
Originally Posted by chia87 View Post
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 !
Kun_zheng is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANSYS Meshing] Periodicity problems in icem zeeshu ANSYS Meshing & Geometry 0 April 17, 2016 20:59
Problems when compile SU2 v4.X with openmpi BopngMa SU2 1 September 6, 2015 06:30
compilation problems in FOAM-Extend 3.1 with a modified "dbnsTurb" GJM1991 OpenFOAM Programming & Development 0 June 26, 2015 09:34
Problems in personal library compilation shrina OpenFOAM 3 February 23, 2009 11:12
Changes in OF 14 and compilation issues alberto OpenFOAM Running, Solving & CFD 13 May 13, 2007 15:21


All times are GMT -4. The time now is 23:00.