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

[waves2Foam] 3DWaves case: Unknown patchField type waveVelocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2014, 03:12
Default 3DWaves case: Unknown patchField type waveVelocity
  #1
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
I have openFoam 2.2 and I added the wave2Foam toolbox to it. I have this toolbox folder on my desktop and could compile it without any problem.

But when I try to run the 3Dwaves tutorial I get the following error:

Code:
Unknown patchField type waveVelocity for patch type patch

Valid patchField types are :

67
(
SRFFreestreamVelocity
SRFVelocity
activeBaffleVelocity
activePressureForceBaffleVelocity
advective
atmBoundaryLayerInletVelocity
calculated
codedFixedValue
codedMixed
cyclic
cyclicAMI
cyclicSlip
cylindricalInletVelocity
directionMixed
empty
fixedGradient
fixedInternalValue
fixedJump
fixedJumpAMI
fixedMean
fixedNormalSlip
fixedValue
flowRateInletVelocity
fluxCorrectedVelocity
freestream
inletOutlet
kqRWallFunction
mapped
mappedField
mappedFixedInternalValue
mappedFixedPushedInternalValue
mappedFlowRate
mappedVelocityFlux
mixed
movingWallVelocity
nonuniformTransformCyclic
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
pressureDirectedInletOutletVelocity
pressureDirectedInletVelocity
pressureInletOutletParSlipVelocity
pressureInletOutletVelocity
pressureInletUniformVelocity
pressureInletVelocity
pressureNormalInletOutletVelocity
processor
processorCyclic
rotatingPressureInletOutletVelocity
rotatingWallVelocity
sliced
slip
supersonicFreestream
surfaceNormalFixedValue
swirlFlowRateInletVelocity
symmetryPlane
timeVaryingMappedFixedValue
translatingWallVelocity
turbulentInlet
uniformFixedValue
uniformJump
uniformJumpAMI
variableHeightFlowRateInletVelocity
waveTransmissive
wedge
zeroGradient
)


file: /home/paritosh/Desktop/currentWork/waveTests/3Dwaves/0/U.boundaryField.inlet0 from line 26 to line 30.

    From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.0/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 136.

FOAM exiting
I doubt that this error is due to the fact that the toolbox folder is on my desktop and not with openfoam directory. But I would like to hear what you guys have to say about it.

So any help or suggestion?
vasava is offline   Reply With Quote

Old   March 31, 2014, 05:31
Default
  #2
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Quote:
Originally Posted by vasava View Post
........I doubt that this error is due to the fact that the toolbox folder is on my desktop and not with openfoam directory.
I could fix the issue by correcting the waveProperties file.
vasava is offline   Reply With Quote

Old   March 31, 2014, 13:18
Default
  #3
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
Hi Paritosh and others,

I cannot reproduce the error, as I have been able to execute the 3Dwaves tutorial straight out of the box on OF2.2.

I used a check-out of revision 2040.

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   April 1, 2014, 06:40
Default
  #4
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Quote:
Originally Posted by ngj View Post
Hi Paritosh and others,

I cannot reproduce the error, as I have been able to execute the 3Dwaves tutorial straight out of the box on OF2.2.

I used a check-out of revision 2040.

Kind regards,

Niels
Do you mean the toolbox comes with openfoam 2.2 (and later versions)??
vasava is offline   Reply With Quote

Old   April 1, 2014, 13:54
Default
  #5
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
No, I mean that by using the most recent svn revision of waves2Foam, I cannot reproduce the error.

waves2Foam is a plugin to OpenFoam, and I try to keep it up to date with new versions, but it is not natively distributed with neither OpenFoam nor the foam-extend project.

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   April 2, 2014, 01:53
Default
  #6
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 22
vasava will become famous soon enough
Ok, I got it now. I simply misunderstood your sentence and started looking for the wave2Foam in openFoam folders. Silly me!!
vasava is offline   Reply With Quote

Old   October 28, 2021, 22:09
Default
  #7
New Member
 
Anthony Moris Danve
Join Date: Jul 2020
Posts: 3
Rep Power: 5
Anthony Danv is on a distinguished road
I also faced the same trouble for "Unknown patchField type waveVelocity". May you help me fix it?. Thanks
Anthony Danv is offline   Reply With Quote

Old   November 1, 2021, 11:50
Default
  #8
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
Hi Anthony,


You need to provide a lot more information to expect qualified help.


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   January 18, 2022, 08:32
Default
  #9
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 6
zyfsoton is on a distinguished road
Hi, I have had the same problem recently.

I copied the DTCHullWave tutorial case into my own directory then I replaced the STL file and then did my own blockMesh, refineMesh and snappyHexMesh etc. Then I did renumberMesh, the error reported:

--> FOAM FATAL IO ERROR:
Essential entry 'value' missing

file: /home/OpenFOAM/OpenFOAM-7/run/KCSDRIFTINWAVE/0/U.boundaryField.inlet from line 31 to line 31.

Then I had to add value in alpha.water and U files in 0 folder (value $internalField; in both inlet BCs in both files)

Then setWaves and decomposePar ran smoothly without any error.

Finally, running interFoam, error reads: Unknown patchField type waveVelocity for patch type patch; (/0/U.boundaryField.inlet)

I think the same error will reported in 0/alpha.water.inlet as well for Unknown patchField type waveAlpha for patch type patch;

Please let me know if you have any hint to resolve this issue! Many thanks and Btw I am using OF version 7 and the patches of waveAlpha and waveVelocity should have been included in OFv7, and I can run DTCHullWave tutorial case without any error!

Any help will be appreciated!
Tony


zyfsoton is offline   Reply With Quote

Old   January 18, 2022, 11:27
Default
  #10
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 6
zyfsoton is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Anthony,


You need to provide a lot more information to expect qualified help.


Kind regards


Niels

Hi Niels,

Please see my post above, any help will be appreciated!

Many thanks,
Tony
zyfsoton is offline   Reply With Quote

Old   January 18, 2022, 12:48
Default
  #11
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
Hi Tony,


The way you describe the workflow, you rely on the wave models in OpenFoam 7 or olaFlow. Neither of these are related to waves2Foam, so I can only recommend that you direct your question to a suitable thread.


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   January 18, 2022, 13:07
Default
  #12
Member
 
Tony Zhang
Join Date: Nov 2019
Location: soton
Posts: 45
Rep Power: 6
zyfsoton is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Tony,


The way you describe the workflow, you rely on the wave models in OpenFoam 7 or olaFlow. Neither of these are related to waves2Foam, so I can only recommend that you direct your question to a suitable thread.


Kind regards


Niels
Dear Niels,

Thank you for your quick reply!

As mentioned before, I am using OF to simulate ships in waves. Is waves2Foam compatible within OpenFOAMv7? I am thinking to use waves2Foam for wave generation instead of OF own one now.

Many thanks,
Tony
zyfsoton 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
wallHeatFlux utility for an incompressible case Mr.Jingles OpenFOAM Post-Processing 67 April 6, 2023 03:25
Inlet patch problems martyn88 OpenFOAM Running, Solving & CFD 6 April 21, 2017 18:34
LES supersonic free jet martyn88 OpenFOAM 22 April 17, 2015 06:00
SimpleFoam - instable simulation Specialist OpenFOAM Running, Solving & CFD 17 August 12, 2014 04:52
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


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