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

Inlet boundary condition for Sine input

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2024, 02:17
Default Inlet boundary condition for Sine input
  #1
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 124
Rep Power: 6
dasith0001 is on a distinguished road
Hi,

I am just wondering why this;

Code:
        maxZ
        {
    		type         uniformFixedValue;
    		uniformValue
    		{
        		type             sine;
        		frequency        10;
        		amplitude        1;

        		// A vector Function1
       	 		scale       (1 0.1 0);
        		level       (10 1 0);
    		}
        }
would not run in OpenFoam 10.

The error I am getting is

Code:
--> FOAM FATAL IO ERROR: 
Expected a '(' while reading VectorSpace<Form, Cmpt, Ncmpts>, found on line 46 the label 1
any suggestions would be appreciated.
Thanks
Dasith
dasith0001 is offline   Reply With Quote

Old   February 5, 2024, 04:43
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32
Yann will become famous soon enoughYann will become famous soon enough
Hello,

It looks like the amplitude parameter expects a vector rather than a scalar.

Regards,
Yann
Yann is offline   Reply With Quote

Old   February 5, 2024, 19:58
Default
  #3
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 124
Rep Power: 6
dasith0001 is on a distinguished road
Hi Yann,

thank you and you are right, if anyone else also looking for this, it should be something like this;

Code:
        maxZ
        {
    		type         uniformFixedValue;
    		uniformValue
    		{
        		type             sine;
        		frequency        10;
        		amplitude        (0 0 0.1)(0 0 0)1; //vector, grad, comp

        		// A vector Function1
       	 		scale       (1 0.1 0);
        		level       (10 1 0);
    		}
        }
dasith0001 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Fatal overflow in linear solver. iamnotfajar CFX 9 October 28, 2020 05:47
Pressure boundary condition for inlet with opening AS_Aero CFX 4 August 4, 2020 08:30
Pressure Inlet Boundary Condition Issue zoeburton1987 FLUENT 0 May 15, 2012 10:20
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55


All times are GMT -4. The time now is 01:23.