|
[Sponsors] |
type expression with variables leads into error message |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 12, 2020, 02:15 |
type expression with variables leads into error message
|
#1 |
Member
Join Date: Jun 2011
Location: Germany
Posts: 59
Rep Power: 14 |
Hello,
in the phaseProperties dict I will set a temperatureDependent surfaceTension with expression value. Variable Def Expression usage Quick example Code:
surfaceTension ( (gas and liquid) { type temperatureDependent; sigma { type temperatureDependent; sigma { type expression; variables ( "B = 1" "Tc = 2" ); expression #{ arg() * Tc + B #}; } } } ); Code:
running decomposePar on /data [0] [3] [3] [3] --> FOAM FATAL IO ERROR: [3] Expected a '(' while reading Tuple2, found on line 0: error [3] [3] [3] file: IOstream at line 0. [3] [3] From bool Foam::Istream::readBegin(const char*) [3] in file db/IOstreams/IOstreams/Istream.C at line 116. [3] FOAM parallel run exiting Code:
icoReactingMultiphaseInterFoam -version Using: OpenFOAM-v2006 (2006) - visit www.openfoam.com Build: 5dc04530d9-20200714 |
|
August 12, 2020, 07:37 |
|
#2 |
Member
Join Date: Jun 2011
Location: Germany
Posts: 59
Rep Power: 14 |
I had fixed.
Remove the first type qualif. (remove line 5 of my short example) |
|
September 14, 2020, 06:31 |
Temperature Dependent Surface Tension
|
#3 |
New Member
Bill
Join Date: Jun 2019
Posts: 29
Rep Power: 6 |
Hi Thomas,
Thank you for sharing your code for temperature dependent surface tension! Do you know how to call the solid volume fraction in the icoReactingMultiphaseInterFoam solver for use in an equation (e.g. TEqn)? In Interfoam, it is simply alpha1 or alpha2, but due to the multiphase nature of the icoReactingMultiphaseInterFoam solver, everything is kind of confusing because of phase pairs and the entire fluid references. Any help is appreciated! |
|
October 9, 2021, 03:04 |
|
#4 | |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
Quote:
Thanks for sharing ur expression. Could you please explain what does arg() means in your expression ? Thank you. |
||
February 2, 2022, 11:12 |
|
#5 |
Senior Member
Lolita
Join Date: Aug 2016
Posts: 115
Rep Power: 9 |
||
February 2, 2022, 12:04 |
|
#6 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40 |
Quote:
The 'arg()' in the expression simply represents the argument 'x' passed into a Function1 value(const scalar x) https://www.openfoam.com/documentati...Function1.html |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instability in buoyantSimpleFoam | Avandri | OpenFOAM Running, Solving & CFD | 0 | August 7, 2020 16:13 |
[Other] simulation of closing the gate using moving mesh | simin_ds | OpenFOAM Meshing & Mesh Conversion | 8 | April 12, 2019 05:49 |
rSF: p divergence in combustor (wt negative value) | zonda | OpenFOAM Pre-Processing | 4 | April 10, 2018 06:59 |
time step continuity problem in VAWT simulation | lpz_michele | OpenFOAM Running, Solving & CFD | 5 | February 22, 2018 19:50 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 02:54 |