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

User Defined Scalar Flux

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 15, 2017, 16:08
Default User Defined Scalar Flux
  #1
New Member
 
Sandilya Garimella
Join Date: Sep 2016
Posts: 1
Rep Power: 0
SandilyaCFD is on a distinguished road
Hello
I am trying to solve two scalar transport equations using OpenFoam.

:
:
{
//Equation 1
solve
(
fvm::laplacian(DT,V)
);

U = -constant * fvc::grad(V);

surfaceScalarField phiU
(
"phiU",
(fvc::interpolate(U) & mesh.Sf())

);


//Scalar Equation 2

solve
(
fvm::ddt(R)
+ fvm::div(phiU,R)
- fvm::laplacian(DR,R)
)

}


How do I calculate the flux term. The term U above is the convective velocity for the species R. But I need to calculate the flux.

I use the surface scalar field option but the scalar R does not experience convection when I run.

Thank you.
SandilyaCFD 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
User Wall Heat Flux Dyls STAR-CCM+ 0 May 13, 2013 11:58
User Defined Scalar (UDS) For Electric Potential A CFD free user FLUENT 0 March 30, 2013 08:22
User defined scalar Tomik FLUENT 0 February 8, 2007 20:23
user defined scalar saghir FLUENT 1 December 4, 2006 06:25
UDF to modify the value of a user defined scalar Raja Banerjee FLUENT 4 December 12, 2000 11:42


All times are GMT -4. The time now is 11:05.