CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

ddt for unsteady term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2020, 02:19
Default ddt for unsteady term
  #1
New Member
 
Jagan Mohan
Join Date: Dec 2019
Location: New York
Posts: 27
Rep Power: 7
jagan1mohan is on a distinguished road
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.
jagan1mohan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:50.