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

codedFixedValue BCs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2018, 05:13
Default codedFixedValue BCs
  #1
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
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
zizou1 is offline   Reply With Quote

Old   February 23, 2023, 19:11
Default Any advances on the topic?
  #2
New Member
 
Yann Scott
Join Date: Oct 2019
Posts: 5
Rep Power: 7
Yann Scott is on a distinguished road
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
Yann Scott is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 15:43.