|
[Sponsors] |
Cannot use erfc() or erf() in setExprFieldsDict expression |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
|
Hello,
I am trying to do some stefan sucking interface validation using icoReactingMultiphaseInterFoam on v1912. I am trying to set up the initial temperature field at time=0.1. But the setExprFieldsDict doesn't allow me to use the erfc() or erf() functions. I can still use sqrt(), exp(), .... and other functions in the expression, but not the error function. I get the following error, "Object erfc does not exist or wrong type in expression at position" Tsup + (Tsat-Tsup)*erfc(N)/erfc(l) ^^^^ near here I also tried using a taylor series expansion for the error function (considered five terms), but the temperature set is wrong. I am herewith attaching the setExprFieldsDict for your reference. Any sort of help would be appreciated. SMR |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 ![]() |
I haven't tried it, but: "std::erfc(x)" would help?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Jakub
Join Date: Aug 2022
Posts: 1
Rep Power: 0 ![]() |
Were you able to solve this problem in the end? I'm also trying to use erf() in setExprFieldsDict
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlet boundary condition in interFoam | Andrea_85 | OpenFOAM Running, Solving & CFD | 51 | July 20, 2017 14:31 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
Lift, Drag Vs time chart,calculations | Jamesd69climber | CFX | 8 | February 17, 2005 18:23 |