|
[Sponsors] |
Simple 1D Scalar Convection Diffusion Problem using OF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 10, 2019, 19:03 |
Simple 1D Scalar Convection Diffusion Problem using OF
|
#1 |
Member
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 9 |
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 |
|
|
|
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 22:21 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
Is there a template for this problem (convection)? | massive_turbulence | OpenFOAM Programming & Development | 1 | May 25, 2013 04:55 |
Radial diffusion in scalarTransport problem | jr33 | OpenFOAM | 0 | April 16, 2013 19:22 |
zero flux boundary for diffusion scalar | cmv | Siemens | 1 | April 15, 2005 06:42 |