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

[waves2Foam] Problems changing waveType from stokesFirst to others

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2016, 02:50
Default Problems changing waveType from stokesFirst to others
  #1
New Member
 
Kenric
Join Date: Mar 2016
Posts: 18
Rep Power: 10
kenrichaiz is on a distinguished road
Hello, I am running the waveFlume tutorial and I have an error while using the function setWaveParameters when I edit the wavetype from stokesFirst to other type of wave in waveProperties.input file. Not sure whether I'm doing it at a right way or not either because I'm very new in openfoam. The waveProperties.input file and the error are as below. Appreciate alot if I can get any help from anyone here. Thank you very much!
PHP Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
dictionary;
    
object      environmentalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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;

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

    
// Wave period
    
period      2.0;

    
// Phase shift in the wave
    
phi         0.000000;

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

    
// Wave height
    
height      0.1;
    
    
// Specifications on the relaxation zone shape and relaxation scheme
    
relaxationZone
    
{
        
relaxationScheme Spatial;
        
relaxationShape  Rectangular;
        
beachType        Empty;
    
        
relaxType   INLET;
        
startX      (0 0.0 -1);
        
endX        (5 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      (13 0.0 -1);
        
endX        (18 0.0  1);
        
orientation      (1.0 0.0 0.0);
    }
};



// ************************************************************************* // 
PHP Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  3.0.1-119cac7e8750
Exec   
setWaveParameters
Date   
Jun 13 2016
Time   
14:28:58
Host   
"OECU"
PID    4282
Case   : /home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/tutorials/waveFoam/waveFlume
nProcs 
1
sigFpe 
Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking Monitoring run-time modified files using timeStampMaster
allowSystemOperations 
Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time


Reading g

Reading waveProperties


Constructing
stokesFirstProperties (Used by another wave theory)
ConstructingstokesSecondProperties


--> FOAM FATAL IO ERROR
keyword debug is undefined in dictionary "/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/tutorials/waveFoam/waveFlume/constant/waveProperties.input.inletCoeffs"

file: /home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/tutorials/waveFoam/waveFlume/constant/waveProperties.input.inletCoeffs from line 28 to line 58.

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

FOAM exiting 
kenrichaiz is offline   Reply With Quote

Old   September 28, 2018, 05:18
Default on the use of waves2Foam other wave theories
  #2
New Member
 
zhongzhong
Join Date: Sep 2018
Posts: 4
Rep Power: 7
shanjiaogangkoumengfei is on a distinguished road
Hello,Excuse me,i want to ask have you solved this problem? i also met it now
if you solved it,can you tell me? Thank you very much
shanjiaogangkoumengfei is offline   Reply With Quote

Old   November 5, 2018, 10:24
Default
  #3
New Member
 
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13
JGadelho is on a distinguished road
The error is very explicit:


keyword debug is undefined in dictionary "/home/oecu/OpenFOAM/oecu-3.0.1/waves2Foam/tutorials/waveFoam/waveFlume/constant/waveProperties.input.inletCoeffs"


Use your prefered editor to edit waveProperties.input


Under inletCoeffs add a variable called debug and give a boolean value (true or false).


In other words, add the green line as follows:



// Wave height
height 0.1;

debug true;
JGadelho 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
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so immortality OpenFOAM Pre-Processing 15 April 7, 2024 12:35
[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
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
[OpenFOAM] ParaView Postprocessing problems with cyclic boundaries christian ParaView 10 June 26, 2009 05:49


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