|
[Sponsors] |
January 18, 2022, 12:38 |
problem with uniformFixedValue
|
#1 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
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 |
|
January 19, 2022, 16:22 |
|
#2 |
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9 |
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
|
|
January 20, 2022, 02:37 |
|
#3 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
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; } // ************************************************************************* // |
|
January 21, 2022, 08:15 |
|
#4 |
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 109
Rep Power: 9 |
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.
|
|
January 23, 2022, 10:05 |
|
#5 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 5 |
Ok thanks i'll give it a go
|
|
May 2, 2022, 03:49 |
|
#6 |
New Member
Chanikya
Join Date: Feb 2020
Posts: 3
Rep Power: 6 |
Hii Williams,
have you resolved the issue, Im also trying to use timeVarying boundary condition. |
|
Tags |
boundary condition, fixed value, time varying boundary |
|
|
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 |