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

Source Term values in transportequation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ahmmedshakil

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2014, 06:23
Default Source Term values in transportequation
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

I have created a source term which is used in a transportequation. The source term returns a field with values of type [change of dimension / time in second].

If I put the source term field "volScalarField SourceTermField" into a transportequation like

Code:
 solve (
            fvm::ddt(alpha,....) 
          ==
          - fvc::div(phase.phiAlpha(),...)    
          +  SourceTermField*runtime.deltaTValue()
          );
will this be the right way to do it?
AND
is method value() the right one to get the physical time of the the actual time step ?

Edit: Furthermore I realized that I get an error when using object runtime in the transportequation:

Quote:
/home/USER/SolverNEW/NEW/NEW_TransportEqns.H:740: error: ‘runtime’ was not declared in this scope
The transportequation is located within the "pimple loop" which itself is within the "runtime loop".

greetings
maybee

Last edited by maybee; May 5, 2014 at 09:35.
maybee is offline   Reply With Quote

Old   May 5, 2014, 11:49
Default
  #2
Senior Member
 
Mohammad Shakil Ahmmed
Join Date: Oct 2012
Location: AUS
Posts: 137
Rep Power: 15
ahmmedshakil is on a distinguished road
i guess it will be: runTime
maybee likes this.
ahmmedshakil is offline   Reply With Quote

Old   May 5, 2014, 12:02
Default
  #3
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
Haha, damn I must be tired.
maybee 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
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
Source Term Question Blackhawks84 Fluent UDF and Scheme Programming 1 July 31, 2012 16:44
UDF Source Term Units? Brian FLUENT 1 October 24, 2005 10:15
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 14, 2000 00:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 04:43


All times are GMT -4. The time now is 07:40.