CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Oscillating velocity inlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2007, 20:24
Default Hi, I began to use Openfoam s
  #1
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
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;
}
}


// ************************************************** ***********************
xiuying is offline   Reply With Quote

Old   October 9, 2007, 05:14
Default It says that at line 36 it exp
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   October 9, 2007, 18:07
Default Hi,Mattijs, The velocity is
  #3
New Member
 
xiuying
Join Date: Mar 2009
Posts: 24
Rep Power: 17
xiuying is on a distinguished road
Hi,Mattijs,

The velocity is a vector. Please tell me how to deal with the problem. Thanks.

Kang
xiuying is offline   Reply With Quote

Old   February 1, 2009, 12:53
Default Hello, did you handle that
  #4
New Member
 
patrick riemer
Join Date: Mar 2009
Location: Uni Stuttgart, Germany
Posts: 19
Rep Power: 17
patriem is on a distinguished road
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
patriem is offline   Reply With Quote

Old   February 2, 2009, 03:05
Default Hi, amplitude is a scalar,
  #5
New Member
 
Daniel Schmode
Join Date: Mar 2009
Posts: 22
Rep Power: 17
daniels is on a distinguished road
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
daniels 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
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


All times are GMT -4. The time now is 06:34.