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

How to write source term into scalar Fiel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2011, 05:59
Default How to write source term into scalar Fiel
  #1
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15
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
Jim
JimKnopf 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
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 16: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 09:15.