|
[Sponsors] |
problem with using timeVaryingUniform by icoFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 8, 2012, 18:23 |
problem with using timeVaryingUniform by icoFoam
|
#1 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
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 ) |
|
August 8, 2012, 18:40 |
case file
|
#2 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
I attached case file for simplicity
Last edited by amin144; August 8, 2012 at 19:52. |
|
August 9, 2012, 10:43 |
|
#3 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
AnyBody answer me this simple question?
|
|
August 9, 2012, 11:25 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 11:30. Reason: see "edit:" |
||
August 9, 2012, 11:27 |
I'm happy
|
#5 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
I could do my job by using GroovyBC and this thread:
http://www.cfd-online.com/Forums/ope...ch-normal.html 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 |
|
August 9, 2012, 11:33 |
|
#6 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
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 |
|
August 9, 2012, 11:50 |
|
#7 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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 |
||
August 9, 2012, 19:38 |
|
#8 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
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 |
|
August 9, 2012, 20:23 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
August 10, 2012, 14:18 |
|
#10 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
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 |
|
August 10, 2012, 14:35 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Or they'll simply go deeper into trouble... of not knowing what they're doing
__________________
|
|
August 11, 2012, 06:05 |
|
#12 |
Member
Amin Shariat KHah
Join Date: Apr 2011
Location: Shiraz
Posts: 86
Rep Power: 15 |
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 |
|
August 11, 2012, 07:09 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Nonetheless, there are at least 2 places where you or anyone else can do this kind of information collection and cataloguing:
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convergence Problem icoFoam steady flow over an airfoil | Lucas | OpenFOAM Running, Solving & CFD | 6 | July 12, 2018 16:06 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Problem Importing Geometry ProE to CFX | fatb0y | CFX | 3 | January 14, 2012 20:42 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |