|
[Sponsors] |
July 5, 2020, 02:19 |
ddt for unsteady term
|
#1 |
New Member
Jagan Mohan
Join Date: Dec 2019
Location: New York
Posts: 27
Rep Power: 7 |
Hello Friends, I'm trying to build an application in OpenFOAM. I'm starting from scratch as I think this is best way to learn what exactly happens behind screen. Lets focus on following.
for (int i = 0; i <= 10; i++) { solve ( fvm::laplacian(kTh, T) ); runTime++; runTime.write( ); } This code runs okay and I get the required temperature profile. Next, I experimented following code, with all others details implemented into main function, compilation successful, here are my questions. for (int i = 0; i <= 10; i++) { solve ( fvm::ddt(T) - konst ); runTime++; runTime.write( ); } As you can see, I'm solving a first order linear differential equation in T. I have casted konst as dimensionedScalar and everything compiles without any error. ControlDict settings are timeStep is 1 with some startTime and endTime. What I observe is in all steps, the initial, final residual and iterations are perfect 0. That is, equation is not being solved. 1. What is happening here? 2. How to make this solve? We should expect a linear increase in temperature by 1 unit in very time step across all the domain. Thank you, Jagan Mohan. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add Source term (2) for PYROLYSIS - reactingOneDim | Kummi | OpenFOAM | 10 | April 12, 2021 22:11 |
Source term for EVAPORATION in Energy Equ. - technical difficulty ? | Kummi | OpenFOAM | 1 | September 9, 2019 10:32 |
rhoPimpleFoam - ddt term | upadhyay.1 | OpenFOAM Running, Solving & CFD | 0 | October 18, 2017 09:44 |
How does fluent discretize the viscous term? | motorbean | FLUENT | 3 | August 25, 2015 17:38 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |