|
[Sponsors] |
![]() |
![]() |
#1 |
Member
james wilson
Join Date: Aug 2014
Location: Orlando, Fl
Posts: 39
Rep Power: 12 ![]() |
Hell all!
Id like to construct a scalar transport equation that contains the components of fvm::div(phi,someScalar) manually. e.g. fvm::div(phi,someScalar) = someScalar*fvc::div(U) + U&fvm::grad(someScalar) How can I be sure someScalar in the term someScalar*fvc::div(U) is treated as an unknown and not explicitly as the previous term? I was also wondering about the units of fvm::div(phi,someScalar). ddt[1/s](someScalar[1]) != div[1/m](phi[m^3/s] * someScalar[1]) [1/s] != [m^2/s] What am I missing? Here is my equation: Code:
fvScalarMatrix someScalarEqn ( fvm::ddt(someScalar) + someScalar*fvc::div(U) + U&fvm::grad(someScalar) ); someScalarEqn.solve(); " genericAlphaEqn.H:3:53: error: no match for ‘operator+’ in ‘Foam: ![]() ![]() " Note, that I use fvm::div(phi,someScalar) everything works fine and the scalar field is advected with the known velocity U (though it isnt pretty ![]() Thank you in advance, James |
|
![]() |
![]() |
![]() |
Tags |
divergence, error, inconsistent types, inner product, scalar transport |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems with a barrier in a river | faerber | OpenFOAM Running, Solving & CFD | 2 | July 6, 2014 23:29 |
Simulation won't show turbulence | pete_87 | OpenFOAM Running, Solving & CFD | 4 | June 25, 2014 12:35 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 03:54 |
[GAMBIT] periodic faces not matching | Aadhavan | ANSYS Meshing & Geometry | 6 | August 31, 2013 12:25 |
pipe flow with heat transfer | Fabian | OpenFOAM | 2 | December 12, 2009 05:53 |