|
[Sponsors] |
March 31, 2017, 04:19 |
FsiFoam 4.0 - can not run tutorials
|
#1 |
Member
Ervin Adorean
Join Date: Mar 2009
Posts: 76
Rep Power: 17 |
Hello,
I have compiled Foam-extend 4.0 and the corresponding FsiFoam package on Slackware 14.2. Foam-extend runs fine. When trying to run the included FsiFoam tutorials I get the error: "flux requested but p not specified in the fluxRequired sub-dictionary of fvSchemes", but that is not the case, the mentioned entry being in place. What could be the real issue here? Thank you! Ervin |
|
April 19, 2017, 17:13 |
|
#2 |
New Member
Thomas
Join Date: Apr 2017
Posts: 1
Rep Power: 0 |
Hello Ervin,
i had the same problem. If you check out the bugfix https://sourceforge.net/p/foam-exten...502bb3bc0040e/ you can find that they disabled the reading of "fluxRequired" by commenting this part in src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C. I simply uncommented lines 382-392. It works fine for me since i only use fsiFoam. Do not forget wmake libso. Best regards Thomas |
|
July 4, 2017, 06:08 |
|
#3 | |
New Member
WA
Join Date: Jun 2017
Posts: 5
Rep Power: 9 |
Quote:
what do you mean "do not forget to wmake libso"? I executed "./Allclean and ./Allwmake" for the foam-extend-4.0 in the dictionary of $HOME/foam-extend-4.0, but it does not work. It still occurred the same error. |
||
August 10, 2017, 05:44 |
|
#4 |
New Member
Join Date: Mar 2014
Posts: 17
Rep Power: 12 |
Hi,
I am also having the "p not specified in the fluxRequired sub-dictionary of fvSchemes" error on foam-extend 4.0. This is a case which runs smoothly on foam-extend 3.2. There should be a reason why the flux required option is disabled. Thanks in advance, Utku |
|
August 16, 2017, 06:45 |
Problem, too
|
#5 | |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
Hi!
I experience the same error and the above bugfix by Hvorje doesn't work for me. Quote:
|
||
August 16, 2017, 11:11 |
Found the error
|
#6 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
Hi Guys, I solved the issue here,
there is one line in at the very end in createFields.H, that's new in fext 4.0: Code:
mesh.schemesDict().setFluxRequired(p.name()); Regards, Ma-tri-x |
|
August 18, 2017, 12:36 |
|
#7 | |
New Member
Join Date: Aug 2017
Location: Germany
Posts: 3
Rep Power: 9 |
Quote:
Can you please clearly explain where to integrate the line? because it is already there in the file "createFields.H". Thanks & Regards Big_bird |
||
August 21, 2017, 06:31 |
where to integrate
|
#8 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
HI Big_bird,
I did 3 things in total: - apply patch to fvSchemes.C (the above buxfix) - in src/finiteVolume/fvMatrices/fvMatrix/fvMatrix.C comment the following lines: Code:
if (!psi_.mesh().schemesDict().fluxRequired(psi_.name())) { FatalErrorIn("fvMatrix<Type>::flux()") << "flux requested but " << psi_.name() << " not specified in the fluxRequired sub-dictionary" " of fvSchemes." << abort(FatalError); } Code:
cd $WM_PROJECT_DIR cd src wmake libso to your createFields.H mesh.schemesDict().setFluxRequired(p.name()); |
|
August 21, 2017, 16:04 |
|
#9 | |
New Member
Join Date: Aug 2017
Location: Germany
Posts: 3
Rep Power: 9 |
Hi matrix,
Thanks for your reply. I just only did the 3rd point you mentioned i.e, adding the line Quote:
|
||
September 24, 2017, 17:08 |
|
#10 |
New Member
Luofeng
Join Date: May 2016
Posts: 5
Rep Power: 10 |
Hi big_bird
Can you please tell me which file did you revised? i.e. where the createFields.H located? there are so many in the foam. Cheers Luofeng |
|
September 28, 2017, 06:05 |
|
#11 |
New Member
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
I am also having trouble with this. Where is createFields.H found? I can't find any reference to it in the fsitoolkit source code. Regards, RH.
|
|
October 4, 2017, 13:28 |
|
#12 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
$WM_PROJECT_DIR/applications/solvers/some_sub_dir/the_solver_you_are_using/createFields.H
|
|
October 5, 2017, 05:21 |
|
#13 | |
New Member
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
Quote:
/incompressible/icoFoam/createFields.H: Code:
label pRefCell = 0; scalar pRefValue = 0.0; setRefCell(p, piso.dict(), pRefCell, pRefValue); mesh.schemesDict().setFluxRequired(p.name()); Code:
Evolving fluid solver: consistentIcoFluid Courant Number mean: 2.74517e-18 max: 0.425797 velocity magnitude: 0.0464238 DILUPBiCG: Solving for Ux, Initial residual = 1, Final residual = 3.27614e-07, No Iterations 4 DILUPBiCG: Solving for Uy, Initial residual = 0.988361, Final residual = 8.95334e-07, No Iterations 4 DILUPBiCG: Solving for Uz, Initial residual = 0.985989, Final residual = 9.63029e-07, No Iterations 4 GAMG: Solving for p, Initial residual = 1, Final residual = 7.79802e-07, No Iterations 19 GAMG: Solving for p, Initial residual = 2.59508e-05, Final residual = 3.63815e-07, No Iterations 2 --> FOAM FATAL ERROR: flux requested but p not specified in the fluxRequired sub-dictionary of fvSchemes. calcPhi.H consistentIcoFluid.C consistentIcoFluid.dep consistentIcoFluid.H Many thanks, RH. |
||
October 19, 2017, 05:08 |
|
#14 |
New Member
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
||
October 19, 2017, 14:43 |
|
#15 |
New Member
Hassan Adel
Join Date: Oct 2013
Location: Egypt
Posts: 18
Rep Power: 13 |
Hallo
I face the same problem Can anyone tell us what shall we do indetails?
__________________
H.Elsheshtawy |
|
October 19, 2017, 16:25 |
Solved
|
#16 | |
New Member
Join Date: Aug 2017
Location: Germany
Posts: 3
Rep Power: 9 |
Hi everyone,
Apologies for the late reply. The "createFields.H" will be located inside the folder of the solver which you are using. just paste this line of code Quote:
Best Regards Big_bird |
||
October 23, 2017, 07:43 |
|
#17 | |
New Member
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
Quote:
Hi Big_bird, I'm not sure about this fix. Please see my post above (#13): HTML Code:
https://www.cfd-online.com/Forums/openfoam-solving/185685-fsifoam-4-0-can-not-run-tutorials.html#post666611 |
||
November 22, 2017, 05:34 |
|
#18 | |
New Member
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
Quote:
All/hassan1201, I had help from a member called alia in a separate thread. I inserted one line of code into the evolve() function for each fluidSolver (i.e. consistentIcoFluid.C, icoFluid.C, pisoFluid.C) Insert Code:
mesh.schemesDict().setFluxRequired(p().name()); Code:
const fvMesh& mesh = fluidSolver::mesh(); src/fluidSolidInteraction/fluidSolvers/consistentIcoFluid/consistentIcoFluid.C src/fluidSolidInteraction/fluidSolvers/icoFluid/icoFluid.C src/fluidSolidInteraction/fluidSolvers/pisoFluid/pisoFluid.C Then I ran ./Allwmake to update and the tutorial ran fine. RH. |
||
November 25, 2017, 18:05 |
|
#19 |
New Member
Sam
Join Date: Nov 2017
Posts: 24
Rep Power: 9 |
@rr3245 thanks men, you're a lifesaver.
|
|
June 2, 2018, 13:53 |
|
#20 | |
Member
Sangeet
Join Date: Jun 2017
Location: India
Posts: 43
Rep Power: 9 |
Quote:
Thank you GOD. fsiFoam tutorials finally running on foam-extend 4.0 . |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[waves2Foam] Compiled with foam-extend-4.0, but I cannot run tutorials in parallel | lxwd | OpenFOAM Community Contributions | 7 | February 22, 2017 03:13 |
OpenFOAM can't be run in parallel in cluster | sibo | OpenFOAM Running, Solving & CFD | 4 | February 21, 2017 17:29 |
parallel run is slower than serial run (pimpleFoam) !!! | mechy | OpenFOAM | 18 | August 17, 2016 18:19 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
[mesh manipulation] Cannot get refineMesh to run in parallel | smschnob | OpenFOAM Meshing & Mesh Conversion | 2 | June 3, 2014 12:20 |