|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
Hi dear FOAMers
especially Bernhard Gschaider ( usual replier to timeVarying B.C.) I've read almost all posts about timeVaryingUniform But I have problem using it I use OF 1.5-dev and I want to work by viscoelasticFluidFoam solvers what should I do ? what's the problem ? should I compile anything? Thanks very much Error: Reading field p Reading field U Reading/calculating face flux field phi Starting time loop Time = 0.005 Courant Number mean: 0 max: 0 velocity magnitude: 0 PBiCG: Solving for Ux, Initial residual = 1, Final residual = 7.46317e-06, No Iterations 5 PBiCG: Solving for Uy, Initial residual = 0, Final residual = 0, No Iterations 0 gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type timeVaryingUniform) on patch inlet of field p in file "/home/amin/OpenFOAM/amin-1.5-dev/run/cavity/0/p" You are probably trying to solve for a field with a generic boundary condition. From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 692. FOAM exiting 0/p: boundaryField { inlet { type timeVaryingUniform; timeDataFileName "inlet.dat"; value uniform 1e5 ; } outlet { type fixedValue; value uniform 0; } wallup { type zeroGradient; } walllow { type zeroGradient; } frontAndBack { type empty; } } inlet.dat: ( 0 1 .01 5 .02 10 .03 20 .07 100 ) |
|
|
|
|
|
|
|
|
#2 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
I attached case file for simplicity
Last edited by amin144; August 8, 2012 at 18:52. |
|
|
|
|
|
|
|
|
#3 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
AnyBody answer me this simple question?
|
|
|
|
|
|
|
|
|
#4 | |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,310
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Amin,
Quote:
![]() The viscoelasticFluidFoam solver is available in the OpenFOAM variant 1.6-ext, not 1.5-dev. There you will also find tutorials on how to use this solver. edit: wait, I'm wrong. I completely forgot that they were already present in 1.5-dev Sorry about that. But still, I can't fully understand the question...Good luck! Bruno
__________________
Last edited by wyldckat; August 9, 2012 at 10:30. Reason: see "edit:" |
||
|
|
|
||
|
|
|
#5 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
I could do my job by using GroovyBC and this thread:
time varying vector boundary condition using patch normal I attached my case in order to using of others. I should mention that I used myIcoFoam solver which it's different to icoFoam is adding the line " -lgroovyBC " to "option" file and compile new solver. After all I'll be happy if someOne say my fault in using timeVaryingUniform |
|
|
|
|
|
|
|
|
#6 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
Hi dear Bruno
Thanks again ![]() I swear GOD I'm not a confused man ( the way you think )I know what I'm saying ![]() The viscoelastic solver exist in 1.5 dev like 1.6 ext My problem is using the boundary condition "timeVaryingUniform" not using solver I appreciat if you can upload me a case using this kind of boundary condition |
|
|
|
|
|
|
|
|
#7 | |
|
Senior Member
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 428
Rep Power: 9 ![]() |
Quote:
this errors essentially means that the solver can't find the timeVaryingUniform boundary condition. In OpenFOAM-1.6-ext, there doesn't seem to be a boundary condition called "timeVaryingUniform". If you check in the directory $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived, you can see the time varying boundary conditions, they are: timeVaryingFlowRateInletVelocity timeVaryingMappedTotalPressure timeVaryingUniformTotalPressure timeVaryingMappedFixedValue timeVaryingUniformFixedValue timeVaryingMappedPressureDirectedInletVelocity timeVaryingUniformInletOutlet Maybe you mean to use one of these? Best regards, Philip |
||
|
|
|
||
|
|
|
#8 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
Hi dear philip
Thanks for your quick reply I have used timeVaryingUniformFixedValue but it doesn't work maybe ma data file is not correct or maybe I should add any library to solver and recompile it I'm confused |
|
|
|
|
|
|
|
|
#9 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,310
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Amin,
You're lucky I had a 1.5-dev build in my machine. I've taken a look at the first case you provided and the modified version is attached. Changes:
Best regards, Bruno
__________________
|
|
|
|
|
|
|
|
|
#10 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
oh!
What a nice and great favor from you Thanks dear Bruno I wish I can help others in future in this forum Atthaching cases is a good job because someone else who have problem like me can solve his/her problem very very quickly |
|
|
|
|
|
|
|
|
#11 | |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,310
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Quote:
__________________
|
||
|
|
|
||
|
|
|
#12 |
|
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 4 ![]() |
![]() But there isn't any known and clear reference to understanding deeply maybe trial and error is a way for learning OF It would be nice and great work if there be a extended and expanded user guide which is summarize of threads in forum |
|
|
|
|
|
|
|
|
#13 | |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,310
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Quote:
![]() Nonetheless, there are at least 2 places where you or anyone else can do this kind of information collection and cataloguing:
__________________
|
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
| Problem Importing Geometry ProE to CFX | fatb0y | CFX | 3 | January 14, 2012 19:42 |
| Convergence Problem icoFoam steady flow over an airfoil | Lucas | OpenFOAM Running, Solving & CFD | 5 | February 18, 2011 12:46 |
| 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 |