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

User Defined Scalar Flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2017, 15:08
Default User Defined Scalar Flux
  #1
New Member
 
Sandilya Garimella
Join Date: Sep 2016
Posts: 2
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


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
UDF to modify the value of a user defined scalar Raja Banerjee Fluent UDF and Scheme Programming 5 March 5, 2019 14:19
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 07:22
User defined scalar Tomik FLUENT 0 February 8, 2007 19:23
user defined scalar saghir FLUENT 1 December 4, 2006 05:25


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