|
[Sponsors] |
September 28, 2020, 00:00 |
funkySetFields
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Hi All!
I am running OpenFOAM 6. When executing funkySetFields -time 0 I get the error: Code:
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : 6-fa1285188035 Exec : funkySetFields -time 0 Date : Sep 27 2020 Time : 23:57:05 Host : "josh-Super-Server" PID : 833 I/O : uncollated Case : /home/josh/OpenFOAM/josh-6/run/cases/ICF4/tank_2/case nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // swakVersion: 0.4.3 (Release date: Next release) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Time = 0 Using funkySetFieldsDict Part: initFieldAlpha Modifying field alpha.water of type volScalarField Putting "0" into field alpha.water at t = "0" if condition "true" is true Keeping patches unaltered Setting 104904 of 104904 cells Writing to "alpha.water" Part: initFieldU Modifying field U of type volVectorField Putting "vector(0.0,0.0,0.0)" into field U at t = "0" if condition "true" is true Keeping patches unaltered Setting 104904 of 104904 cells Writing to "U" Part: pressureAir Modifying field p_rgh of type volScalarField Putting "0" into field p_rgh at t = "0" if condition "true" is true Keeping patches unaltered Setting 104904 of 104904 cells Writing to "p_rgh" Part: alphaIC Modifying field alpha.water of type volScalarField Putting "1" into field alpha.water at t = "0" if condition "pos().y<0.0006+0.00468023*pow(459.772*pos().z-19944.1*pow(pos().z,8/3)+177465*pow(pos().z,13/3),1/3)" is true Keeping patches unaltered #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" #3 ? in "/lib/x86_64-linux-gnu/libm.so.6" #4 pow in "/lib/x86_64-linux-gnu/libm.so.6" #5 Foam::pow(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:? #6 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::pow<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:? #7 parserField::FieldValueExpressionParser::parse() at ??:? #8 Foam::FieldValueExpressionDriver::parseInternal(int) at ??:? #9 Foam::CommonValueExpressionDriver::parse(Foam::exprString const&, Foam::word const&) at ??:? #10 ? in "/home/josh/OpenFOAM/josh-6/platforms/linux64GccDPInt32Opt/bin/funkySetFields" #11 ? in "/home/josh/OpenFOAM/josh-6/platforms/linux64GccDPInt32Opt/bin/funkySetFields" #12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #13 ? in "/home/josh/OpenFOAM/josh-6/platforms/linux64GccDPInt32Opt/bin/funkySetFields" Floating point exception (core dumped) EDIT: FIXED IT. I THINK the error was a domain issue with the "pos().y<0.0006+0.00468023*pow(459.772*pos().z-19944.1*pow(pos().z,8/3)+177465*pow(pos().z,13/3),1/3)" condition (fractional exponents were ill-defined outside a domain). Thanks though! Last edited by joshmccraney; September 28, 2020 at 11:26. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] groovyBC and funkySetFields married and got a kid named swak4Foam | gschaider | OpenFOAM Community Contributions | 169 | August 10, 2023 09:01 |
initialising a thermal boundary layer at interface using funkySetFields | saj216 | OpenFOAM | 7 | February 25, 2023 11:05 |
[swak4Foam] how to use funkySetFields function in muliregion case | bryant_k | OpenFOAM Community Contributions | 15 | October 15, 2021 02:50 |
[swak4Foam] funkySetFields and funkySetBoundaryFields | zxj160 | OpenFOAM Community Contributions | 19 | February 14, 2018 19:07 |
[swak4Foam] funkySetFields: problem with processor boundary | nmikhailov | OpenFOAM Community Contributions | 4 | May 26, 2015 09:48 |