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

[swak4Foam] very strange behavior

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2013, 09:55
Default very strange behavior
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Dear All,

I am trying to use swak4Foam and it presents a very strange behaviour. Below my U file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 1 -1 0 0 0 0 ];

internalField  uniform (0.4298 0 0);
               
boundaryField
{
    bottomWall
    {
		type			groovyBC;
		value			uniform (0 0 1);
		variabiles	 	"a=6;";
		valueExpression	"vector (0, 0, a)";		
    }

    topWall
    {
		type			fixedValue;
		value			uniform (0 0 0);	
	}

    right
    {
        type            empty;
    }

    left
    {
        type            empty;
    }

    inflow
    {
     	type            cyclic;
    }
 
   outflow
    {
 		type            cyclic;
    }
}
This does not work. What it is strange is that if I use the variable k instead of a, then the simulation runs.
Since I need more than 1 variable, I can't simply use k instead of a.

Could you help,
please?

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   December 6, 2013, 10:26
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by samiam1000 View Post
Dear All,

I am trying to use swak4Foam and it presents a very strange behaviour. Below my U file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [ 0 1 -1 0 0 0 0 ];

internalField  uniform (0.4298 0 0);
               
boundaryField
{
    bottomWall
    {
		type			groovyBC;
		value			uniform (0 0 1);
		variabiles	 	"a=6;";
		valueExpression	"vector (0, 0, a)";		
    }

    topWall
    {
		type			fixedValue;
		value			uniform (0 0 0);	
	}

    right
    {
        type            empty;
    }

    left
    {
        type            empty;
    }

    inflow
    {
     	type            cyclic;
    }
 
   outflow
    {
 		type            cyclic;
    }
}
This does not work. What it is strange is that if I use the variable k instead of a, then the simulation runs.
Since I need more than 1 variable, I can't simply use k instead of a.

Could you help,
please?

Thanks a lot,
Samuele
swak uses English. This is hard for me too as it is not my native language. "variabiles" is definitely not English. Is it Italian?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 6, 2013, 10:29
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
It's just a typo!

But why if I used k, then it worked?

Thanks a lot,
Samuele.
samiam1000 is offline   Reply With Quote

Old   December 6, 2013, 13:20
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by samiam1000 View Post
It's just a typo!

But why if I used k, then it worked?

Thanks a lot,
Samuele.
Probably (you didn't say which solver you use) because your solver has turbulence and k is the field of the turbulent kinetic energy
samiam1000 likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
strange processor boundary behavior with linearUpwindV akimbrell OpenFOAM Bugs 19 April 2, 2018 07:42
strange processor boundary behavior in foam-extend reactingFOAM Neka OpenFOAM Bugs 8 August 16, 2017 07:13
2D VAWT pimpleDymFoam - strange flow behavior VAWT OpenFOAM Running, Solving & CFD 3 April 23, 2014 08:01
[surface handling] surfaceFeatureExtract strange behavior wc34071209 OpenFOAM Meshing & Mesh Conversion 0 March 11, 2014 09:22
Strange rhoCentralFoam behavior after restart... vkrastev OpenFOAM Bugs 27 November 19, 2013 12:04


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