|
[Sponsors] |
September 18, 2018, 05:13 |
codedFixedValue BCs
|
#1 |
New Member
Join Date: Mar 2018
Posts: 16
Rep Power: 8 |
Hi all!
I'm studying a simple parabolic profile inside a pipe. Once the running is finished, I see two main output errors: $ parafoam Created temporary 'pipe.foam' ERROR: In C:\bbd\5105004d\source-paraview\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6506 vtkOpenFOAMReaderPrivate (000002A73D290350): Error reading line 32 of D:\blueCFD-Core-2016\ofuser-of4\run\pipe\0/U: Unsupported directive { ERROR: In C:\bbd\5105004d\source-paraview\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6902 vtkOpenFOAMReaderPrivate (000002A73D290350): boundaryField walls not found in object p at time = 0 This is my U file: dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type codedFixedValue; value $internalField; redirectType velocityProfile; code #{ scalar nu=0.01; scalar dp=2; scalar r1=0.07; fixedValueFvPatchVectorField myPatch(*this); forAll(this->patch().Cf(),i) { myPatch[i]=vector(0,0,(1/nu)*dp*((Foam::sqrt((Foam:ow(this->patch().Cf()[i].x(), 2) + Foam:ow(this->patch().Cf()[i].y(), 2))))- r1*r1 ) ); } operator==(myPatch); #}; } outlet { type zeroGradient; } "(walls|bfV_zone0)" { type fixedValue; value uniform (0 0 0); } } And this is my p file: dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type zeroGradient; } outlet { type fixedValue; value uniform 0; } "(walls|bfV_zone0)" { type zeroGradient; } } bfV stands for a butterflyValve put inside with snappy. I want to point out that I have to run the case twice: with and without the bfV. This time the case has run without the bfV. Any suggestions for those errors? Thanks |
|
February 23, 2023, 19:11 |
Any advances on the topic?
|
#2 |
New Member
Yann Scott
Join Date: Oct 2019
Posts: 5
Rep Power: 7 |
Salut Zizou!
I am having the same issue as you. Could you solve it? I believe that the codedFixedValue boundary conditions is the cause of the error. Have you tried a different boundary condition? Cheers, Yann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to set BCs programmatically | incompressible | OpenFOAM Programming & Development | 6 | November 20, 2017 03:47 |
[swak4Foam] switch between existing BCs with groovyBC?! | michielm | OpenFOAM Community Contributions | 3 | September 4, 2013 09:01 |
Difference between HF and Temperature BCs | Catthan | FLUENT | 0 | August 7, 2013 06:59 |
Dealing with BC's in OF 1.6 | vkrastev | OpenFOAM Running, Solving & CFD | 5 | September 4, 2012 12:58 |
Understanding Code behind BCs | Linse | OpenFOAM Programming & Development | 8 | January 9, 2012 09:58 |