|
[Sponsors] |
How to visualize source term (scalar) added through vectorCodedSource in fvOptions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 8, 2023, 08:24 |
How to visualize source term (scalar) added through vectorCodedSource in fvOptions
|
#1 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16 |
Dear Foamers,
I am trying to add a source term ("s1", which is a function of time) in the momentum equation using the Code:
vectorCodedSource Code:
if (t2<tf) { s1 = 0.00001296*f/V[celli]; USource[celli] -= vector(s1, 0,0 ); } if (t2>=tf && t2<=tp) { s1 = 0.0; USource[celli] -= vector(s1, 0,0 ); } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Division by zero exception - loop over scalarField | Pat84 | OpenFOAM Programming & Development | 6 | February 18, 2017 05:57 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 17:34 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 09:17 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |