|
[Sponsors] |
September 27, 2019, 15:43 |
nutkWallFunction
|
#1 |
New Member
|
Hi all,
I've just compiled a solver with OF7 without problems, but, when I run the case I have the following error: --> FOAM FATAL ERROR: Attempt to cast type calculated to type nutWallFunction From function To& Foam::refCast(From&) [with To = const Foam::nutWallFunctionFvPatchScalarField; From = const Foam::fvPatchField<double>] in file /home/ubuntu/OpenFOAM/OpenFOAM-7/src/OpenFOAM/lnInclude/typeInfo.H at line 114. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 Foam::nutWallFunctionFvPatchScalarField::nutw(Foam ::turbulenceModel const&, int) at ??:? #3 Foam::incompressible::alphatJayatillekeWallFunctio nFvPatchScalarField::updateCoeffs() at ??:? #4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() in "/home/sara/OpenFOAM/sara-7/platforms/linux64GccDPInt32Opt/bin/convectiveFoamInf" #5 ? in "/home/sara/OpenFOAM/sara-7/platforms/linux64GccDPInt32Opt/bin/convectiveFoamInf" #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? in "/home/sara/OpenFOAM/sara-7/platforms/linux64GccDPInt32Opt/bin/convectiveFoamInf" Aborted (core dumped) I've already check online and suggestions about blockMesh problems seem not appropriate in this case. I think my nut file is ok. this is my nut: \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object nut; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -1 0 0 0 0]; internalField uniform 0; boundaryField { floor { type nutkWallFunction; value uniform 0; } ceiling { type nutkWallFunction; value uniform 0; } fixedWalls { type nutkWallFunction; value uniform 0; } emptyWalls { type empty; value uniform 0; } } // ************************************************** *********************** // and this is my blockMeshdict \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( (0 0 0) (1 0 0) (1 0.001 0) (0 0.001 0) (0 0 1) (1 0 1) (1 0.001 1) (0 0.001 1) ); blocks ( hex (0 1 2 3 4 5 6 7) (128 1 128) simpleGrading (1 1 1) ); edges ( ); boundary ( floor { type wall; faces ( (0 3 2 1) ); } ceiling { type wall; faces ( (4 5 6 7) ); } fixedWalls { type wall; faces ( (0 4 7 3) (2 6 5 1) ); } emptyWalls { type empty; faces ( (4 0 1 5) (7 6 2 3) ); } ); mergePatchPairs ( ); Ps: the same case worked well on OF5. Passing from OF5 to OF7 I just modified a litte the solver and I don't have any problem in compling it. Is maybe the problem due to a wrong path to access libraries? Any suggestions? I hope to have been clear! Thanks, Sara |
|
October 2, 2019, 17:28 |
|
#2 |
New Member
Join Date: Oct 2019
Posts: 1
Rep Power: 0 |
Hello, Sara.
I personally entered this error when running with low-Re k-omega SST in OF7. Did not find a reason. Follow this. |
|
October 9, 2019, 11:32 |
|
#3 |
New Member
Join Date: Sep 2019
Posts: 8
Rep Power: 7 |
Same problem here, curious if anybody found a solution!
|
|
October 10, 2019, 05:40 |
|
#4 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
The Problem seems to come Frome the alphat wall function rather than the nut wall function. It comes when the function evaluatecoeff is called. See https://github.com/OpenFOAM/OpenFOAM...hScalarField.C
|
|
November 8, 2019, 07:32 |
|
#5 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
I had the same problem, when I (mistakenly) used wall boundary conditions for k and omega on a in- and/or outlet patch.
|
|
February 16, 2020, 15:52 |
|
#6 |
New Member
Join Date: May 2015
Posts: 17
Rep Power: 11 |
Hey Sara,
i've encountered the same Error using the SST-Turbulence model in OpenFoam 7. My case is the flow in a rectangle box, where the bottom is a wall and the top symmetry. The side walls got an cyclic bc. The mesh at the bottom should be fine enough for yPlus < 1, so i don't want to use any wallfunctions (apart of omegaWallFunction of course). The solver is rhoSimpleFoam. According to this thread: SST SimpleFoam Convergence Problems i set k@wall to fixedValue, uniform 0 k@outlet to zeroGradient omega@wall to omegaWallFunction, uniform 1.0E-8 (small value) nut@wall to calculated, uniform 0 nut@inlet to calculated, uniform 0 nut@outlet to zeroGradient and get the same error like sara. According to mAlletto in this thread i tried different bc for alphat at the wall, but the error still occurs. Did anyone of you found a solution so far? I will upload my 0 and system folder, if someone want so search for similarities or differences. Greetings, Stuntmanbob |
|
April 6, 2020, 04:31 |
|
#7 |
Senior Member
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16 |
FWIW I encounter the same error with OpenFOAM 7 and kOmegaSST. Simulation runs without problems in OpenFOAM 6
|
|
May 5, 2020, 09:25 |
|
#8 |
New Member
Join Date: Sep 2019
Posts: 17
Rep Power: 7 |
I had the same problem with v1912. The case was a multi body sixdof simulation, where I guess the solver didn't like the sixdof calculating the motion for the wall function patch. Simulation seems to run fine with v1812.
|
|
May 12, 2020, 06:55 |
|
#9 |
Member
JuanMi
Join Date: Nov 2017
Posts: 41
Rep Power: 9 |
Same error. In my case it appears ussing the chtMultiRegionFoam. Also with k-omega SST.
|
|
August 3, 2020, 05:11 |
|
#10 | |
New Member
Join Date: Oct 2016
Posts: 2
Rep Power: 0 |
Quote:
I had a similar issue with the 2D airfoil case. However, the following change in the /0/nut file solved it: old: walls { type fixedValue; value uniform 0; } new: walls { type nutkWallFunction; value uniform 0; } However, I do not know if this has any implications on the results or that in both cases it will be just set to 0 as requested by the uniform 0. |
||
September 9, 2020, 09:13 |
|
#12 |
Senior Member
|
||
April 28, 2024, 23:23 |
|
#13 |
Member
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 8 |
||
Tags |
nutkwallfunction, openfaom-7 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
nutWallFunction vs. nutkWallFunction | romant | OpenFOAM Running, Solving & CFD | 4 | June 16, 2016 13:43 |
nutkwallfunction vs nutUSpaldingWallFunction | giammy92 | OpenFOAM Running, Solving & CFD | 0 | April 1, 2016 16:11 |
are kqrWallFunction,omegaWallFunction and nutkWallFunction adaptive? | HR1991 | OpenFOAM Pre-Processing | 0 | December 12, 2015 08:42 |
nutkwallfunction | sam1364 | OpenFOAM | 1 | November 28, 2011 04:01 |
yPlusRAS and nutkWallfunction patch | romant | OpenFOAM Post-Processing | 2 | November 14, 2011 10:40 |