|
[Sponsors] |
the format of adding volVectorField term into equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2017, 14:47 |
the format of adding volVectorField term into equation
|
#1 | |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 10 |
Dear OpenFOAMers,
I have a quick question regarding the volVectorField. How can we implement the volVectorField term into the equation? Like, for example, UEqn.H in interMixingFoam. After defining a volVectorField in createField.H named 'F'. I want to add the force term(which is a vector term) into the UEqn.H, written as 'interpolate(F)'. But the system will always complain about the format of this vector term. My UEqn.H is partially quoted below: Quote:
Regards, Linyan |
||
March 16, 2017, 09:27 |
Solved:outside of reconstruct statement
|
#2 |
Member
Linyan X
Join Date: Dec 2015
Posts: 43
Rep Power: 10 |
Thanks to Fanny's kindly answer here. The volVectorField F is supposed to be ok when it was written at the right side of the UEqn. Hence, the code is corrected as follow:
PHP Code:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding a source term to k and epsilon equation for buoyancy | rajeshkunwar | OpenFOAM Running, Solving & CFD | 2 | April 19, 2019 07:41 |
Adding a Source Term to Pressure equation pEqn in SimpleFoam | oscar_urri | OpenFOAM | 11 | February 22, 2018 17:52 |
adding a constant volumetric source term to transport equation in a particular region | cfdonline2mohsen | OpenFOAM Programming & Development | 15 | February 16, 2017 09:55 |
Source term energy equation for reactive flows | DaIN | Main CFD Forum | 0 | October 6, 2011 15:11 |
bouyancy term in epsilon equation | Michael | Main CFD Forum | 1 | June 25, 1999 10:20 |