June 13, 2016, 02:50
|
Problems changing waveType from stokesFirst to others
|
#1
|
New Member
Kenric
Join Date: Mar 2016
Posts: 18
Rep Power: 10
|
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)
Constructing: stokesSecondProperties
--> 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&, bool, bool) const
in file db/dictionary/dictionary.C at line 442.
FOAM exiting
|
|
|