|
[Sponsors] |
Boundary condition for fourth order differential equation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2015, 12:26 |
Boundary condition for fourth order differential equation
|
#1 |
Member
Join Date: Mar 2015
Posts: 36
Rep Power: 11 |
Dear Foamers,
actually i am a bit confused of OpenFoam's implementation of boundary conditions. Actually I have to solve the followong pDGL for my concentration profile: fvm::ddt(c) == fvm::laplacian(D, "laplacian(c)") (+ other terms) with D as diffusion coefficient in form of a volScalarField In this pDGL fourth order derivative with respect to space (and some mixed derivatives) are present, but OpenFoan uses only one boundary condition for the c-Field. How can this work and is there an easy way to implement the second boundary condition? Or more detailed: What happens in the fvm::laplacian( ... "laplacian")? The best way would be to output the CEqn in matrix-form to an external file like the c-Field. Has anybody of you ever done this? (Btw.: An explicit treatment is already working like A = fvc::laplacian(C) and fvm::ddt(c) == fvc::laplacian(D,A) with seperated BC to c- and A-field. The question is about the implicit treatment to use Crank-Nicolson in the end and become second order acurate in time.) Thanks for any comments. |
|
May 12, 2015, 10:25 |
|
#2 |
Member
Join Date: Mar 2015
Posts: 36
Rep Power: 11 |
I think, I "solved" the problem on my own.
The matrix structure of OpenFoam (LDU-matrix) does not allow to use the neighbour of a neighbour for discretisation. Only the direct neighbour can be used, so the normal "laplace"-operator is the highest possible implicit derivative. Therefore a higher implicit derivative is only possible by rewriting all matrix classes and the used solver. |
|
Tags |
boundary-conditions, crank-nicolson, fourth order pdgl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 11:54 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |
CFX Solver : Sudden crash | Hervé | CFX | 2 | June 16, 2008 07:40 |
boundary condition for species equation | zhou1 | FLUENT | 1 | June 3, 2004 17:15 |
Boundary Conditions | Jan Ramboer | Main CFD Forum | 11 | August 16, 1999 09:59 |