|
[Sponsors] |
October 8, 2007, 20:24 |
Hi,
I began to use Openfoam s
|
#1 |
New Member
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17 |
Hi,
I began to use Openfoam simulating a rough channel flow with turbulent model and oscillating velocity inlet. I wrote the file /0/U as follows. But when I run it, The wrong is like the following. Could you tell me how to deal with problem. Thank you. Kang Nprocs : 1 Create time Create mesh for time = 0 Reading field p Reading field U --> FOAM FATAL IO ERROR : wrong token type - expected Scalar found on line 36 the word 'uniform' file: /OpenFOAM/xiuying-1.4.1/run/tutorials/turbFoam/rough/0/U::amplitude at line 36. From function operator>>(Istream&, Scalar&) in file lnInclude/Scalar.C at line 85. FOAM exiting /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.4 | | \ / A nd | Web: http://www.openfoam.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; root ""; case ""; instance ""; local ""; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type oscillatingFixedValue; refValue uniform (0 0 0); amplitude uniform (1.0 0 0); frequency 100; value uniform (0 0 0); } outlet { type zeroGradient; } upperWall { type slip; } lowerWall { type fixedValue; value uniform (0 0 0); } frontAndBack { type empty; } } // ************************************************** *********************** |
|
October 9, 2007, 05:14 |
It says that at line 36 it exp
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
It says that at line 36 it expects a scalar but is reading 'uniform'.
My guess is that the amplitude and frequency are all single scalars. Check the source code (finiteVolume/lnInclude/oscillatingFixedValueFvPatchField.*) to make sure is my advice. |
|
October 9, 2007, 18:07 |
Hi,Mattijs,
The velocity is
|
#3 |
New Member
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17 |
Hi,Mattijs,
The velocity is a vector. Please tell me how to deal with the problem. Thanks. Kang |
|
February 1, 2009, 12:53 |
Hello,
did you handle that
|
#4 |
New Member
patrick riemer
Join Date: Mar 2009
Location: Uni Stuttgart, Germany
Posts: 19
Rep Power: 17 |
Hello,
did you handle that problem? I am at the same point at the moment... Would be great if someone could help finding a solution. Regards, Patrick |
|
February 2, 2009, 03:05 |
Hi,
amplitude is a scalar,
|
#5 |
New Member
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17 |
Hi,
amplitude is a scalar, try ... inlet { type oscillatingFixedValue; refValue uniform (1. 0 0); amplitude 1.0; frequency 100; value uniform (0 0 0); } (You can find out what type is required in line 59ff of src/finiteVolume/fields/fvPatchFields/derived/oscillatingFixedValue/oscillatingF ixedValueFvPatchField.H) Daniel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Oscillating velocity and porous zones | alberto | OpenFOAM Running, Solving & CFD | 4 | October 28, 2016 04:14 |
Steady pipe flow mean velocity higher than inlet velocity | anita | OpenFOAM Running, Solving & CFD | 7 | September 25, 2012 06:35 |
Oscillating inlet??? | Adam | CFX | 0 | March 10, 2008 21:57 |
Velocity of 3.5 for oscillating airfoil - logical? | quarkz | Main CFD Forum | 0 | April 13, 2006 01:12 |
Strange oscillating velocity | zonexo | Main CFD Forum | 2 | April 6, 2006 12:38 |