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

problem with uniformFixedValue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2022, 12:38
Default problem with uniformFixedValue
  #1
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Hello,


I am trying to implement a time varying velocity boundary condition and so am editing the 3dTube solids4foam case to test things out.


I have edited the 'U' file in 0/fluid/ to say this:


inlet
{
type uniformFixedValue;
uniformValue table
(
(0 (0 1.3332 0))
(3e-3 (0 1.3332 0))
(3.1e-3 (0 0 0))
(1e-2 (0 0 0))
);
}


However, I get this error:


--> FOAM FATAL IO ERROR:
Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 38 the word 'table'

file: /mnt/c/Users/merli/simulations/3dTest2/0/fluid/U::boundaryField::inlet::uniformValue at line 38.

From function Istream::readBegin(const char*)
in file db/IOstreams/IOstreams/Istream.C at line 86.

FOAM exiting


I have no idea what is wrong because I am following the syntax set out on this page https://cfd.direct/openfoam/user-guide/v9-boundaries/ in section 5.2.3.4.


Please can someone tell me why I am experiencing this error?
Thank you for your help

Best regards
MFWilliams is offline   Reply With Quote

Old   January 19, 2022, 16:22
Default
  #2
Senior Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9
JulioPieri is on a distinguished road
The syntax seems ok. I copied what you wrote to another case and it ran. It might be an error somewhere else in the U file. Share it here in code quotes
JulioPieri is offline   Reply With Quote

Old   January 20, 2022, 02:37
Default
  #3
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Oh ok. Thank you, here is the U file:


Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     3.0                                |
|   \\  /    A nd           | Web:         http://www.extend-project.de       |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (0 0 0);

boundaryField
{
    symmetry-x
    {
        type         symmetryPlane;
    }

    symmetry-y
    {
        type         symmetryPlane;
    }
    outlet
    {
        type         zeroGradient;
    }
    inlet
    {
        type       uniformFixedValue;
        uniformValue       table
        (
        (0       (0 1.3332 0))
        (3e-3    (0 1.3332 0))
        (3.1e-3  (0 0 0))
        (1e-2    (0 0 0))
        );
    }
    wall
    {
        type         newMovingWallVelocity;
        value        uniform (0 0 0);
    }
}
// ************************************************************************* //

I also edited the pressure file, shown below. I basically tried to move the time varying input from the p file to the U file.


Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    symmetry-x
    {
        type        symmetryPlane;
    }
    symmetry-y
    {
        type        symmetryPlane;
    }
    outlet
    {
        type        fixedFluxExtrapolatedPressure;
        value       uniform 0;
    }
    inlet
    {
        type        fixedFluxExtrapolatedPressure;
        value       uniform 0;
    }
    wall
    {
        type       zeroGradient;
        // type       extrapolatedPressure;
        value      uniform 0;
    }


// ************************************************************************* //
MFWilliams is offline   Reply With Quote

Old   January 21, 2022, 08:15
Default
  #4
Senior Member
 
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9
JulioPieri is on a distinguished road
Well, everything looks ok from here.. But I don't have foam-extend installed to try this sorry. I'd check for updates that might have fixed this. Or maybe this set of BCs doesnt support table? Try writing chunks of you BC file to another case to boil down the error.
JulioPieri is offline   Reply With Quote

Old   January 23, 2022, 10:05
Default
  #5
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5
MFWilliams is on a distinguished road
Ok thanks i'll give it a go
MFWilliams is offline   Reply With Quote

Old   May 2, 2022, 03:49
Default
  #6
New Member
 
Chanikya
Join Date: Feb 2020
Posts: 3
Rep Power: 6
Chanikya_Valeti is on a distinguished road
Hii Williams,
have you resolved the issue, Im also trying to use timeVarying boundary condition.
Chanikya_Valeti is offline   Reply With Quote

Reply

Tags
boundary condition, fixed value, time varying boundary


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
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 05:37
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


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