CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] swak4Foam division by 0 error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2017, 18:19
Default swak4Foam division by 0 error
  #1
Member
 
Join Date: Jun 2016
Posts: 99
Rep Power: 10
xuegy is on a distinguished road
Hello all,
I've compiled OpenFOAM v1706 and swak4Foam (https://github.com/Unofficial-Extend...pile_v17706%2B)

During the swak4Foam installation it gave me tons of could no open file * for source file * due to No such file or directory warnings but according to https://openfoamwiki.net/index.php/I...Error_Messages they can be ignored. And the compilation finished without errors, only warnings. However this is quite unusual since in my previous installation there's no warning.

OpenFOAM works, but swak4Foam doesn't. I applied a Robin BC:
Code:
        type groovyBC;
        variables "GT=snGrad(T);DT=8.1e-13;DC=4.4e-12;";
        valueExpression "0";
        gradientExpression "0";
        fractionExpression "1/(1+DC/(DT*GT*mag(delta())))";
but OpenFOAM gave me this error:
Code:
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::divide(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#4  Foam::operator/(Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
#5  parserPatch::PatchValueExpressionParser::parse() at ??:?
#6  Foam::PatchValueExpressionDriver::parseInternal(int) at ??:?
#7  Foam::CommonValueExpressionDriver::parse(Foam::exprString const&, Foam::word const&) at ??:?
#8  Foam::tmp<Foam::Field<double> > Foam::CommonValueExpressionDriver::evaluate<double>(Foam::exprString const&, bool) at ??:?
#9  Foam::groovyBCFvPatchField<double>::updateCoeffs() at ??:?
#10  Foam::fvMatrix<double>::fvMatrix(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:?
#11  Foam::tmp<Foam::fvMatrix<double> > Foam::fv::optionList::operator()<double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::word const&) at ??:?
#12  ? at ??:?
#13  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#14  ? at ??:?
Floating point exception (core dumped)
Which looks like a division by zero error.

I'm 100% sure my own solver and groovyBC is correct. It worked on OpenFOAM 4.1 with an earlier swak4Foam-dev (before 0.4.1 was released). I also tried OpenFOAM 4.1 with swak4Foam 0.4.1 and latest dev but they all gave the same error. So this should be an installation error.

Last edited by xuegy; August 2, 2017 at 21:14.
xuegy is offline   Reply With Quote

Old   August 26, 2017, 16:05
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I don't if you've solved this problem or not.

If you haven't, please provide a simple test case where this boundary condition can be used, because this is very likely some specific internal initialization that works differently from the expected one from past OpenFOAM versions.
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 18:58.