|
[Sponsors] |
September 2, 2015, 16:31 |
Source Term
|
#1 |
New Member
|
I would like to know how is the more practical way to insert a source term as like in the attached figure. The simulation will be transient.
Thanks |
|
September 2, 2015, 17:28 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
Source term into what equation ?
Separately, may I ask what that expression is trying to model ? |
|
September 2, 2015, 19:57 |
|
#3 |
New Member
|
Dear Opaque.
Thanks for your contact. This is the entropy generation equation, that it has two terms, the temperature and friction terms. It's a volumetric term and I don't know hos is the better way to implement it. Thanks. |
|
September 3, 2015, 09:29 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
thank you for the explanation about the source term.. Interesting.
If you need the component of the gradient of a variable in CFX, you can use CEL expressions to access them following the syntax <Variable Name>.Gradient <Component> For example, you source term can be written as Code:
EntropySource = ConductionSource + FrictionSource ConductionSource = Thermal Conductivity * ( (Temperature.Gradient X)^2 + (Temperature.Gradient Y)^2) / Temperature^2 FrictionSource = Dynamic Viscosity * ( 2 * ( Velocity u.Gradient X ) ^2 + 2 * (Velocity v.Gradient Y) ^2 + ... ) / Temperature Code:
Source = EntropySource Source Coefficient = < A value if needed to help convergence > Good luck.. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term due to evaporation in energy transport equation | styleworker | OpenFOAM Programming & Development | 3 | September 7, 2022 03:09 |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 14:22 |
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error | FerdiFuchs | OpenFOAM Community Contributions | 27 | April 16, 2014 15:14 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 03:43 |