|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 105
Rep Power: 8 ![]() |
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
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4 ![]() |
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; } // ************************************************************************* // |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Julio Pieri
Join Date: Sep 2017
Posts: 105
Rep Power: 8 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4 ![]() |
Ok thanks i'll give it a go
|
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 05:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |