CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

nutkWallFunction

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By louisgag

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2019, 15:43
Default nutkWallFunction
  #1
New Member
 
Sara Lenzi
Join Date: Jun 2017
Location: Italy
Posts: 8
Rep Power: 9
saralen is on a distinguished road
Send a message via Skype™ to saralen
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
saralen is offline   Reply With Quote

Old   October 2, 2019, 17:28
Default
  #2
New Member
 
Join Date: Oct 2019
Posts: 1
Rep Power: 0
Constructor is on a distinguished road
Hello, Sara.

I personally entered this error when running with low-Re k-omega SST in OF7. Did not find a reason.
Follow this.
Constructor is offline   Reply With Quote

Old   October 9, 2019, 11:32
Default
  #3
New Member
 
Join Date: Sep 2019
Posts: 8
Rep Power: 7
foamyva is on a distinguished road
Same problem here, curious if anybody found a solution!
foamyva is offline   Reply With Quote

Old   October 10, 2019, 05:40
Default
  #4
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
mAlletto is offline   Reply With Quote

Old   November 8, 2019, 07:32
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
I had the same problem, when I (mistakenly) used wall boundary conditions for k and omega on a in- and/or outlet patch.
jherb is offline   Reply With Quote

Old   February 16, 2020, 15:52
Default
  #6
New Member
 
Join Date: May 2015
Posts: 17
Rep Power: 11
Stuntmanbob is on a distinguished road
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
Attached Files
File Type: zip EK_75_1m.zip (7.7 KB, 16 views)
Stuntmanbob is offline   Reply With Quote

Old   April 6, 2020, 04:31
Default
  #7
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
FWIW I encounter the same error with OpenFOAM 7 and kOmegaSST. Simulation runs without problems in OpenFOAM 6
Bazinga is offline   Reply With Quote

Old   May 5, 2020, 09:25
Default
  #8
New Member
 
Join Date: Sep 2019
Posts: 17
Rep Power: 7
courant_numero_uno is on a distinguished road
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.
courant_numero_uno is offline   Reply With Quote

Old   May 12, 2020, 06:55
Default
  #9
Member
 
JuanMi
Join Date: Nov 2017
Posts: 41
Rep Power: 9
keitaro7_14 is on a distinguished road
Same error. In my case it appears ussing the chtMultiRegionFoam. Also with k-omega SST.
keitaro7_14 is offline   Reply With Quote

Old   August 3, 2020, 05:11
Default
  #10
New Member
 
Join Date: Oct 2016
Posts: 2
Rep Power: 0
GeertL is on a distinguished road
Quote:
Originally Posted by keitaro7_14 View Post
Same error. In my case it appears ussing the chtMultiRegionFoam. Also with k-omega SST.

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.
GeertL is offline   Reply With Quote

Old   September 2, 2020, 03:03
Default
  #11
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 15
frantov is on a distinguished road
I had the same issue on v1912. It was fixed with boundary conditions and fvSolution solver for omega.
frantov is offline   Reply With Quote

Old   September 9, 2020, 09:13
Default
  #12
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Quote:
Originally Posted by jherb View Post
I had the same problem, when I (mistakenly) used wall boundary conditions for k and omega on a in- and/or outlet patch.
thanks, I had a similar issue... omega was somehow mistakenly set to omegaWallFunction on a slip patch and caused the error message.
lpz456 likes this.
louisgag is offline   Reply With Quote

Old   April 28, 2024, 23:23
Default
  #13
Member
 
bany
Join Date: Nov 2019
Posts: 50
Rep Power: 8
bany is on a distinguished road
Quote:
Originally Posted by louisgag View Post
thanks, I had a similar issue... omega was somehow mistakenly set to omegaWallFunction on a slip patch and caused the error message.

When the chemistry is on, the same error occurs.
I cancel the omegaWallFunction BC for 0/nut, and the error disappears.
bany is offline   Reply With Quote

Reply

Tags
nutkwallfunction, openfaom-7


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 19:54.