|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Mar 2018
Posts: 16
Rep Power: 6 ![]() |
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: ![]() ![]() } 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 |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |