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

Adding a scalar for tracing to simpleFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 25, 2015, 19:53
Default Adding a scalar for tracing to simpleFoam
  #1
New Member
 
Join Date: Aug 2015
Location: Germany
Posts: 2
Rep Power: 0
HerrSchein is on a distinguished road
Hello everybody,

I'm trying to add the transport of a scalar for tracing the flow from one of two inlets to simpleFoam. The scalar should only be transported by convection.The equation I plan to add to the simpleFoam solver looks like this.

fvScalarMatrix tracerEqn
(
fvm::ddt(tracer) == - fvm::div(phi,tracer)
);

If I use it for solving I get a floating point exception which I guess is due to simpleFoam not being made for code containing ddt() terms which would be nonsense to do in a steady-state simulation. This being a stationary problem would make that term zero anyway so that should not be a problem. I can't figure out how to write that zero into there though.

My problem seems rather trivial to me but I can't find a solution. Does somebody here knoe how to express such an equation?
HerrSchein is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 2 April 10, 2015 05:42
Diverging solution in transonicMRFDyMFoam tsalter OpenFOAM Running, Solving & CFD 30 July 7, 2014 06:20
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 11 April 22, 2014 12:32
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27


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