CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How to write source term into scalar Fiel

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

LinkBack Thread Tools Display Modes
Old   March 23, 2011, 06:59
Default How to write source term into scalar Fiel
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 9
JimKnopf is on a distinguished road
Hello everybody!

I have a equation with a source Term specified by:

fvScalarMatrix xEqn
+ fvm::SuSp(-fvc::div(phi), x)

where x is my specie. Now I like to now visualize just this term. Therefore I created a volScalarField xSource. Now I don't get the result of the source term into the scalar field.

My first Idea was to use

xSource = xEqn.source()

The source() function is of type Field<type>

on compilation i get the error that there is 'no match for operator=' and wmake purposes something like to use a GeometryField.

Well the point is I like to know what is in the source term and i don't get it written out. How do I achieve this ?

Thanks and best regards
JimKnopf is offline   Reply With Quote


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
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
UDF's - linearizing a negative source term Steve Howell FLUENT 1 March 18, 2001 17:21
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43

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