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

help for data output

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2010, 07:15
Default help for data output
  #1
New Member
 
yafuji aki
Join Date: Jul 2010
Location: Japan
Posts: 14
Rep Power: 15
aki_yafuji is on a distinguished road
Dear OpenFOAMers!

I am studying a tutorial about cavity flow, which is on Sec.2.1 in UserGuide.
Here, a standard k-epsilon model(kEpsilon) is used for turbulence.
I have a question about output. I would appreciate it if you can tell me
how to solve my question.

We can see (volume averaged) temporal derivative term 'ddt(epsilon_)'
in OpenFOAM/OpenFOAM-1.6/src/turbulenceModels/incompressible/RAS/kEpsilon/kEpsilon.C,

kEpsilon.C
---------------------------------------------------
223 // Dissipation equation
224 tmp<fvScalarMatrix> epsEqn
225 (
226 fvm::ddt(epsilon_)
227 + fvm::div(phi_, epsilon_)
228 - fvm::Sp(fvc::div(phi_), epsilon_)
229 - fvm::laplacian(DepsilonEff(), epsilon_)
230 ==
231 C1_*G*epsilon_/k_
232 - fvm::Sp(C2_*epsilon_/k_, epsilon_)
233 );
---------------------------------------------------

I would like to output ddt(epsilon_) (just as 'p' and 'U') at each time step,
but I am not sure how to modify the code.

As a trial, I modified kEpsilon.C as follows

---------------------------------------------------
volScalarField A = fvm::ddt(U);
volScalarField B = fvm::div(phi_, epsilon_);
volScalarField C = fvm::Sp(fvc::div(phi_), epsilon_);

tmp<fvScalarMatrix> epsEqn
(
A
+ B
- C
.
.
.
---------------------------------------------------

but I failed to output...How may I modify the code???
I would appreciate any solution you can come up with that would resolve the problem.
I am so sorry my English is very poor. Any assistance which you can give me would be gratefully received.

aki
aki_yafuji 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
Questions about data output aki_yafuji OpenFOAM Running, Solving & CFD 3 September 9, 2010 01:59
lift and drag on ship superstructures vaina74 OpenFOAM Running, Solving & CFD 3 June 8, 2010 12:30
[Other] Output Format of MetaMesh t42 OpenFOAM Meshing & Mesh Conversion 0 August 3, 2007 04:28
can "output control " output Nu in expression? prayskyer CFX 3 July 7, 2006 19:37
Help with DPM UDF for OUTPUT needed Zhengcai Ye FLUENT 0 January 5, 2004 16:58


All times are GMT -4. The time now is 16:09.