|
[Sponsors] |
[swak4Foam] funkySetFields - expression evaluation - error |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 25, 2012, 12:02 |
funkySetFields - expression evaluation - error
|
#1 |
Member
Join Date: Nov 2010
Posts: 41
Rep Power: 16 |
I have following expression in my funkSetFieldsDict:
Code:
expressions ( setInternalField { field Ub; expression "pos().z >= 0.1 ? vector(log(pos().z-0.08),0,0) : vector(0,0,0) "; keepPatches true; } ); |
|
January 25, 2012, 20:09 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The best solution I can think of is "vector(log(pos().z >= 0.1 ? pos().z-0.08 : 1),0,0)" (untested - hope there is no syntax error) |
||
January 26, 2012, 05:46 |
|
#3 |
Member
Join Date: Nov 2010
Posts: 41
Rep Power: 16 |
Thanks for the explanation. It is a clever work around!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
POSDAT problem | piotka | STAR-CD | 4 | June 12, 2009 09:43 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |