|
[Sponsors] |
simultaneously solve number of diffusion equations |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 26, 2014, 08:21 |
simultaneously solve number of diffusion equations
|
#1 |
New Member
Shakil Masum
Join Date: Aug 2014
Posts: 11
Rep Power: 11 |
Hi,
I want to solve these equations using OpenFOAM. The diffusion equations are: dC0/dt = D1 d2/dx2 C0 dC1/dt = D1 d2/dx2 C1 + D2 d2/dx2 C0 (please check the attachment, I have typed them properly in the attachment). I can solve the equations using Laplacian Foam individually. But, I want to solve both equations simultaneously, I mean in every time steps. The problem is the second equation needs the value of C0 (from first equation) in every time step. What changes are required in laplacianFoam.C and also in the '0', 'constant' and 'system' folders? It will be much appreciated. thanks shakil |
|
Tags |
diffusion, laplacian |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
timeVaryingMappedFixedValue: large data mapping on complex inlet boundaries | vkrastev | OpenFOAM Pre-Processing | 7 | June 2, 2016 15:50 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 01:47 |
decomposePar pointfield | flying | OpenFOAM Running, Solving & CFD | 28 | December 30, 2013 15:05 |
AMI interDyMFoam for mixer | danny123 | OpenFOAM Running, Solving & CFD | 4 | June 19, 2013 04:49 |
modify fvMatrix / coupled equations / higher order diffusion | Jinming | OpenFOAM Programming & Development | 0 | May 7, 2011 06:20 |