March 14, 2017, 10:09
|
|
#3
|
Member
Chia
Join Date: Jan 2016
Location: Singapore
Posts: 30
Rep Power: 10
|
Quote:
Originally Posted by ngj
Hi Chia,
I suppose it is because your focus time is larger than your end time. You could also verify that the expected amplitudes and phases are written to waveProperties.
Kind regards
Niels
|
Thanks Niels, for the reply
I tried re-running a regular wave simulation, and found that no waves were generated. I admit i think I may had compile wavefoam wrongly on my new working environment.
I'm actually working on a new environment and I tried compiling wavefoam by using of301
I tried to copy my simulations that Ive successfully used in my old workplace using of301, and my current work station doesnt recognize the inlet boundary type of alpha1.org (doesnt recognize waveAlpha) ,
boundaryField
{
inlet
{
type waveAlpha;
refValue uniform 0;
refGrad uniform 0;
valueFraction uniform 1;
value uniform 0;
}
Hence, i tried changing it to fixedValue and no waves were made, thats prolly the case im facing,
I went back to execute ./Allwmake , this is what I got
Quote:
=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
OFPLUSBRANCH=0
WAVES_APPBIN=/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin
WAVES_DIR=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/lib
WAVES_POST=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/applications/solvers/solvers301
WAVES_SRC=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/src
WAVES_TUT=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=301
=====================================
COMPILE LAPACK-3.3.1
=====================================
lapack-3.3.1 has already been compiled
=====================================
COMPILE SPARSKIT2
=====================================
SPARSKIT2 has already been compiled
=====================================
COMPILE OCEANWAVE3D
=====================================
Pull changes from the OceanWave3D git repository ...
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'chia@chia-VirtualBox.(none)')
Cannot save the current index state
No stash found.
OceanWave3D has already been compiled
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/ThirdParty
=====================================
COMPILE FENTON4FOAM
=====================================
fenton4Foam has already been compiled
=====================================
COMPILE LIBRARY
=====================================
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/src/waves2Foam
'/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/lib/libwaves2Foam.so' is up to date.
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/src/waves2FoamProcessing
'/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/lib/libwaves2FoamProcessing.so' is up to date.
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/src/waves2FoamSampling
'/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/lib/libwaves2FoamSampling.so' is up to date.
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/src/waves2FoamPorosity
'/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/lib/libwaves2FoamPorosity.so' is up to date.
=====================================
COMPILE SOLVERS
=====================================
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/solvers/solvers301
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/twoPhaseMixture/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/transportModels -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/incompressible/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/interfaceProperties/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/TurbulenceModels/incompressible/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/fvOptions/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/sampling/lnInclude -DOFVERSION=300 -DEXTBRANCH=0 -DOFPLUSBRANCH=0 -DXVERSION=0 -I/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/chia/OpenFOAM/chia-3.0.1/applications/utilities/waves2Foam/src/waves2FoamSampling/lnInclude -I/usr/include -IlnInclude -I. -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c waveFoam.C -o /home/chia/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt64Opt/applications/utilities/waves2foam/applications/solvers/solvers301/waveFoam.o
In file included from waveFoam.C:73:0:
readWaveProperties.H: In function ‘int main(int, char**)’:
readWaveProperties.H:1:1: error: ‘S’ was not declared in this scope
S Info << "\nReading waveProperties" << endl;
^
In file included from waveFoam.C:84:0:
CourantNo.H:39:29: error: ‘phi’ was not declared in this scope
fvc::surfaceSum(mag(phi))().internalField()
^
In file included from waveFoam.C:98:0:
setRDeltaT.H:63:33: error: ‘phi’ was not declared in this scope
fvc::surfaceSum(mag(phi))().dimensionedInternalFie ld()
^
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:102:0:
CourantNo.H:39:29: error: ‘phi’ was not declared in this scope
fvc::surfaceSum(mag(phi))().internalField()
^
In file included from waveFoam.C:103:0:
alphaCourantNo.H:44:9: error: ‘mixture’ was not declared in this scope
mixture.nearInterface()().internalField()
^
alphaCourantNo.H:45:29: error: ‘phi’ was not declared in this scope
*fvc::surfaceSum(mag(phi))().internalField()
^
alphaCourantNo.H:32:8: warning: unused variable ‘maxAlphaCo’ [-Wunused-variable]
scalar maxAlphaCo
^
In file included from waveFoam.C:116:0:
/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude/alphaControls.H:1:51: error: ‘alpha1’ was not declared in this scope
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
^
In file included from waveFoam.C:117:0:
alphaEqnSubCycle.H:11:32: error: ‘phi’ was not declared in this scope
dimensionedScalar("0", phi.dimensions(), 0)
^
alphaEqnSubCycle.H:16:38: error: ‘UdmModel’ was not declared in this scope
mesh.Sf() & fvc::interpolate(UdmModel.Udm())
^
In file included from alphaEqnSubCycle.H:40:0,
from waveFoam.C:117:
alphaEqn.H:29:35: error: ‘talphaPhiCorr0’ was not declared in this scope
if (alphaApplyPrevCorr && talphaPhiCorr0.valid())
^
alphaEqn.H:38:17: error: ‘mixture’ was not declared in this scope
mixture.alphaMax(),
^
alphaEqn.H:46:9: error: ‘talphaPhiCorr0’ was not declared in this scope
talphaPhiCorr0 = talphaPhiUD;
^
alphaEqn.H:77:17: error: ‘mixture’ was not declared in this scope
mixture.alphaMax(),
^
alphaEqn.H:101:17: error: ‘mixture’ was not declared in this scope
mixture.alphaMax(),
^
alphaEqn.H:109:9: error: ‘talphaPhiCorr0’ was not declared in this scope
talphaPhiCorr0 = alphaPhi - talphaPhiCorr0;
^
alphaEqn.H:112:5: error: ‘alpha2’ was not declared in this scope
alpha2 = 1.0 - alpha1;
^
In file included from alphaEqnSubCycle.H:48:0,
from waveFoam.C:117:
alphaEqn.H:29:35: error: ‘talphaPhiCorr0’ was not declared in this scope
if (alphaApplyPrevCorr && talphaPhiCorr0.valid())
^
alphaEqn.H:38:17: error: ‘mixture’ was not declared in this scope
mixture.alphaMax(),
^
alphaEqn.H:46:9: error: ‘talphaPhiCorr0’ was not declared in this scope
talphaPhiCorr0 = talphaPhiUD;
^
alphaEqn.H:77:17: error: ‘mixture’ was not declared in this scope
mixture.alphaMax(),
^
alphaEqn.H:101:17: error: ‘mixture’ was not declared in this scope
mixture.alphaMax(),
^
alphaEqn.H:109:9: error: ‘talphaPhiCorr0’ was not declared in this scope
talphaPhiCorr0 = alphaPhi - talphaPhiCorr0;
^
alphaEqn.H:112:5: error: ‘alpha2’ was not declared in this scope
alpha2 = 1.0 - alpha1;
^
In file included from waveFoam.C:117:0:
alphaEqnSubCycle.H:57:28: error: ‘turbulence’ was not declared in this scope
- fvm::laplacian(turbulence->nut(), alpha1)
^
alphaEqnSubCycle.H:63:9: error: ‘alpha2’ was not declared in this scope
alpha2 = 1.0 - alpha1;
^
alphaEqnSubCycle.H:72:5: error: ‘rhoPhi’ was not declared in this scope
rhoPhi = alphaPhi*(rho1 - rho2) + phi*rho2;
^
alphaEqnSubCycle.H:72:24: error: ‘rho1’ was not declared in this scope
rhoPhi = alphaPhi*(rho1 - rho2) + phi*rho2;
^
alphaEqnSubCycle.H:72:31: error: ‘rho2’ was not declared in this scope
rhoPhi = alphaPhi*(rho1 - rho2) + phi*rho2;
^
alphaEqnSubCycle.H:73:5: error: ‘rho’ was not declared in this scope
rho = mixture.rho();
^
alphaEqnSubCycle.H:73:11: error: ‘mixture’ was not declared in this scope
rho = mixture.rho();
^
waveFoam.C:119:13: error: ‘relaxing’ was not declared in this scope
relaxing.correct();
^
waveFoam.C:121:13: error: ‘mixture’ was not declared in this scope
mixture.correct();
^
In file included from waveFoam.C:123:0:
UEqn.H:3:18: error: ‘rho’ was not declared in this scope
fvm::ddt(rho, U)
^
UEqn.H:4:18: error: ‘rhoPhi’ was not declared in this scope
+ fvm::div(rhoPhi, U)
^
UEqn.H:5:9: error: ‘turbulence’ was not declared in this scope
+ turbulence->divDevRhoReff(U)
^
UEqn.H:19:21: error: ‘interface’ was not declared in this scope
interface.surfaceTensionForce()
^
UEqn.H:20:21: error: ‘ghf’ was not declared in this scope
- ghf*fvc::snGrad(rho)
^
UEqn.H:21:33: error: ‘p_rgh’ was not declared in this scope
- fvc::snGrad(p_rgh)
^
UEqn.H:26:9: error: ‘K’ was not declared in this scope
K = 0.5*magSqr(U);
^
In file included from waveFoam.C:128:0:
pEqn.H:12:51: error: ‘phi’ was not declared in this scope
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
^
pEqn.H:15:27: error: ‘p_rgh’ was not declared in this scope
adjustPhi(phiHbyA, U, p_rgh);
^
pEqn.H:21:13: error: ‘ghf’ was not declared in this scope
- ghf*fvc::snGrad(rho)
^
pEqn.H:44:31: error: ‘pRefCell’ was not declared in this scope
p_rghEqn.setReference(pRefCell, getRefCellValue(p_rgh, pRefCell));
^
In file included from waveFoam.C:128:0:
pEqn.H:62:22: error: ‘gh’ was not declared in this scope
p == p_rgh + rho*gh;
^
pEqn.H:70:13: error: ‘pRefValue’ was not declared in this scope
pRefValue - getRefCellValue(p, pRefCell)
^
pEqn.H:70:44: error: ‘pRefCell’ was not declared in this scope
pRefValue - getRefCellValue(p, pRefCell)
^
In file included from waveFoam.C:116:0:
/home/chia/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude/alphaControls.H:18:8: warning: unused variable ‘icAlpha’ [-Wunused-variable]
scalar icAlpha
^
/home/chia/OpenFOAM/OpenFOAM-3.0.1/wmake/rules/General/transform:8: recipe for target '/home/chia/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt64Opt/applications/utilities/waves2foam/applications/solvers/solvers301/waveFoam.o' failed
make: *** [/home/chia/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt64Opt/applications/utilities/waves2foam/applications/solvers/solvers301/waveFoam.o] Error 1
=====================================
COMPILE PRE-PROCESSING
=====================================
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/faceSetToSTL
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/faceSetToSTL'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/faceSetToSTL' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/faceSetToSTL'
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/relaxationZoneLayout
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/relaxationZoneLayout'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/relaxationZoneLayout' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/relaxationZoneLayout'
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/setWaveField
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/setWaveField'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/setWaveField' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/setWaveField'
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/setWaveParameters
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/setWaveParameters'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/setWaveParameters' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/setWaveParameters'
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/waveGaugesNProbes
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/waveGaugesNProbes'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/waveGaugesNProbes' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/preProcessing/waveGaugesNProbes'
=====================================
COMPILE POST-PROCESSING
=====================================
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/postProcessing/postProcessWaves2Foam
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/postProcessing/postProcessWaves2Foam'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/postProcessWaves2Foam' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/postProcessing/postProcessWaves2Foam'
/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/postProcessing/surfaceElevation
make[1]: Entering directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/postProcessing/surfaceElevation'
make[1]: '/home/chia/OpenFOAM/chia-3.0.1/platforms/linux64GccDPInt64Opt/bin/surfaceElevation' is up to date.
make[1]: Leaving directory '/home/chia/OpenFOAM/OpenFOAM-3.0.1/applications/utilities/waves2foam/applications/utilities/postProcessing/surfaceElevation'
=====================================
COMPILATION DONE
=====================================
|
it seems that in the waveFoam.C , there are alot of commands or items 'not declared' and i think that could be the root of the problem, any insights on how to proceed further?
thanks for your kind patience
|
|
|