gradientInternalCoeffs cannot be called for a calculatedFvPatchField
hi everybody,
I defined a new solver that solve natural convection in a viscoelastic Fluid. it made successfully, but when I want to run my model the following error was appeared: Code:
--> FOAM FATAL ERROR: Thanks |
DEAR mostafa
could you post your p file here? |
1 Attachment(s)
the attachment contains the p, fvSolution and fvSchemes files.
I changed the floor boundary condition and even delete the p file but this problem didn't had been solve. I think the problem is somewhere in the fvSolution or fvSchemes. |
this solver reads p or p-rgh ?
it seems it reads p, if it reads p! then you should define BC for p, you can not use calculated BC, you should use (fixedValue or fixedGradient) for it :D |
Quote:
|
Dear mostafa let me ask another questions, which version of openfoam do you use?
could you run this test case before heat transfer implementation? put the test case and solver here, then may other can help you |
Hi
Did you set p equal to another field in your solver during calculations? i.g. p=....? |
this is where I use the p in createFields.H:
Code:
Info<< "Calculating field g.h\n" << endl; Code:
p = p_rgh + rhok*gh; |
Hi
I think you have two options two solve the problem. Selection is your choice: 1: volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); or 2: p == p_rgh + rhok*gh; |
Dear Ata
I applied what you offered me and what Nima said, that error was solved. but after some iterations (50) the following error appeared: Code:
#0 Foam::error::printStack(Foam::Ostream&) in "/home/mostafa/OpenFOAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/lib/libOpenFOAM.so" again thank you so much |
it seems somewhere in your code something divide on zero or going to result indefinite value
|
Dear adambarfi,
Are you able to resolve your error?
|
Quote:
yes, after some day hard working, finally I could solve it. |
2 Attachment(s)
Quote:
how do you solved this problem?? I have some problem like this,but my problem dont solve by ata or nima offers... I use interPhasechangeFoam solver and modified this solver for my simulation... you can see my creatFields and Peqn |
hi Sasan,
I get your attached files and I couldn't find any thing that made error! so, attach your log file + the errors expression |
1 Attachment(s)
Quote:
Thank you for reply.. my error: FOAM FATAL ERROR: gradientInternalCoeffs cannot be called for a calculatedFvPatchField on patch left of field p in file "/home/Sasan/Desktop/HardtMix/stephanProblem/0/p" You are probably trying to solve for a field with a default boundary condition. and attach the log file |
You have to specify correct boundary conditions for p otherwise you cannot solve the pEqn!
The error message gave you already a hint what you have to do: Code:
on patch left of field p in file "/home/Sasan/Desktop/HardtMix/stephanProblem/0/p" try other boundary conditions that are compatible with your solution. |
Quote:
I used this test case with another solver and dont have problem,But for new solver,I have this problem. my BC is not calculated....!! you can see: |
1 Attachment(s)
Quote:
|
mhmm, I think there are problems with p BCs.
the userGuide says: Quote:
Also, I can't understand these conditions you used for p_rgh: Code:
type buoyantPressure; Code:
type buoyantPressure; |
All times are GMT -4. The time now is 23:05. |