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

[waves2Foam] keyword debug is undefined in dictionary waveProperties

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2015, 02:02
Default keyword debug is undefined in dictionary waveProperties
  #1
New Member
 
Weiye Ding
Join Date: Jul 2015
Location: Dalian
Posts: 9
Rep Power: 10
Tings_ is on a distinguished road
Hi Niels and waveFoamers

when i try to change the wavetype by stokesSecond or stokesFifth the error comes out

the waveProperties.input
Code:
seaLevel	0.00;

// A list of the relaxation zones in the simulation. The parameters are given
// in <name>Coeffs below.
relaxationNames (inlet outlet);

initializationName outlet;

inletCoeffs
{
    // Wave type to be used at boundary "inlet" and in relaxation zone "inlet"
    waveType    stokesSecond;  
    
    // Ramp time of 2 s
    Tsoft       2.525;

    // Water depth at the boundary and in the relaxation zone
    depth       0.4;

    // Wave period
    period      2.525;

    // Phase shift in the wave
    phi         0.000000;

    // Wave number vector, k. 
    direction  (1.0 0.0 0.0);

    // Wave height
    height      0.022;
    
    // Specifications on the relaxation zone shape and relaxation scheme
    relaxationZone
    {
        relaxationScheme Spatial;
        relaxationShape  Rectangular;
        beachType        Empty;
    
        relaxType   INLET;
        startX      (-7.8 0.0 -1);
        endX        (0 0.0  1);
        orientation      (1.0 0.0 0.0);
    }
};

outletCoeffs
{
    waveType    potentialCurrent;
    U           (0 0 0);
    Tsoft       2;

    relaxationZone
    {
        relaxationScheme Spatial;
        relaxationShape  Rectangular;
        beachType        Empty;    

        relaxType   OUTLET;
        startX      (20 0.0 -1);
        endX        (30 0.0  1);
        orientation      (1.0 0.0 0.0);
    }
};
the error
Code:
--> FOAM FATAL IO ERROR: 
keyword debug is undefined in dictionary "/home/tings/OpenFOAM/tings-2.3.0/OpenFOAM-2.3.0/applications/utilities/waves2Foam/tutorials/waveFoam/waveFlume-stokessecondorder/constant/waveProperties.inletCoeffs"

file: /home/tings/OpenFOAM/tings-2.3.0/OpenFOAM-2.3.0/applications/utilities/waves2Foam/tutorials/waveFoam/waveFlume-stokessecondorder/constant/waveProperties.inletCoeffs from line 25 to line 43.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 437.

FOAM exiting
So, what should i do?

thanks
Tings
Tings_ is offline   Reply With Quote

Old   September 21, 2015, 03:48
Default
  #2
Member
 
Ed Ransley
Join Date: Jul 2012
Posts: 30
Rep Power: 13
Ed R is on a distinguished road
Dear Tings,

As the error message states `debug' has not been defined in `waveProperties.inletCoeffs'.

Go into your waveProperties file and add `debug false;' or `debug true;' after 'height 0.022;'

debug is a Boolean option (also mentioned in the error message) i.e. one requiring a `yes or no' type response, that helps identify whether or not you are using the correct wave theory for the specific input variables you've entered. If you set it to `false' it'll do nothing, if you set it to `true' it'll produce an output based on the validity of the chosen wave theory.

Good luck,

Ed
Ed R is offline   Reply With Quote

Old   September 21, 2015, 07:30
Default
  #3
New Member
 
Weiye Ding
Join Date: Jul 2015
Location: Dalian
Posts: 9
Rep Power: 10
Tings_ is on a distinguished road
Quote:
Originally Posted by Ed R View Post
Dear Tings,

As the error message states `debug' has not been defined in `waveProperties.inletCoeffs'.

Go into your waveProperties file and add `debug false;' or `debug true;' after 'height 0.022;'

debug is a Boolean option (also mentioned in the error message) i.e. one requiring a `yes or no' type response, that helps identify whether or not you are using the correct wave theory for the specific input variables you've entered. If you set it to `false' it'll do nothing, if you set it to `true' it'll produce an output based on the validity of the chosen wave theory.

Good luck,

Ed
Dear Ed

Thank you very very much for helping me analyse and solve the problem. i have run the case successfully.

Best regards!
Tings
Tings_ 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
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 08:43.