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

fvMatrix to volScalarField coversion ?

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

LinkBack Thread Tools Display Modes
Old   May 15, 2015, 19:14
Unhappy fvMatrix to volScalarField coversion ?
lfgmarc's Avatar
Luis Felipe Gutierrez Marcantoni
Join Date: Oct 2010
Location: Cordoba-Argentina
Posts: 47
Rep Power: 6
lfgmarc is on a distinguished road
Send a message via MSN to lfgmarc
Hi everybody,

I'm try to use the combustion model class of openfoam, it has a member function that returns the source therm for species equations (Reaction rate):

virtual tmp<fvScalarMatrix> R(volScalarField& Y) const = 0;

If I understand well, this funcion is overloaded with the calculation way provided by reaction model for R that is selected at runtime. it function returns a fvScalarMatrix. My question is if I want to define a new volScalarfield, for example, Rates, It is possible to utilices this fvScalarMatrix and define a volScalarField , exists any form to make this conversion ?

Any advice will be graatly appreciated, thanks in advance

Felipe G
lfgmarc 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
libOpenSMOKE Tobi OpenFOAM Programming & Development 506 September 28, 2015 06:07
using chemkin JMDag2004 OpenFOAM Pre-Processing 1 December 15, 2014 17:38
the openfoam source term and fvmatrix problem wenxu OpenFOAM Programming & Development 0 September 5, 2014 10:56
make a dimensionedScalar to be volScalarField sharonyue OpenFOAM Programming & Development 4 April 2, 2014 05:44
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16

All times are GMT -4. The time now is 15:35.