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

Simple 1D Scalar Convection Diffusion Problem using OF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2019, 18:03
Default Simple 1D Scalar Convection Diffusion Problem using OF
  #1
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi,


I am trying to solve a simple problem (it has analytical solution) using OpenFOAM:


d/dx[ 2x*y(x) + (epsilon + x^2)*dy(x)/dx] = 0

The boundary values of y are given

I've converted the equation to OpenFOAM as follow:




fvm::div(phi, y) + fvm::laplacian(D, y)


where

phi -> linearInterpolate(U) & mesh.Sf()
U -> the evaluation of 2x multiplied by x unit vector
D -> (epsilon + x^2)


The result is zero everywhere and y doesn't change at all (zero iteration)




Any help in highlighting my mistake(s) will be appreciated


Saleh
Saleh Abuhanieh 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
Error in New Surface reaction model (Having multiple reactions) surajkvs OpenFOAM Programming & Development 2 May 23, 2023 21:21
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Is there a template for this problem (convection)? massive_turbulence OpenFOAM Programming & Development 1 May 25, 2013 03:55
Radial diffusion in scalarTransport problem jr33 OpenFOAM 0 April 16, 2013 18:22
zero flux boundary for diffusion scalar cmv Siemens 1 April 15, 2005 05:42


All times are GMT -4. The time now is 14:47.