|
[Sponsors] |
LaplacianFoam: Solver averages out the in random initial condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 1, 2013, 01:05 |
LaplacianFoam: Solver averages out the in random initial condition
|
#1 |
Member
Hrushi
Join Date: Jan 2013
Posts: 58
Rep Power: 13 |
Hi Foamers,
I am trying to solve Allen-Cahn equation in Openfoam. I modified laplacian foam for this exercise. It requires a special random initial conditions where concentration can have value +1 or -1. I created field in openfoam for 128*128 grids. However, while solving the equation, openfoam seems to average out the phi field to zero in the very first step. I do not understand why this is happening. Since I am trying to solve it explicitly, I tried programming it in Matlab too. Matlab works fine, but Openfoam does not. Could anyone please help me understand what is happening? I have attached the source code herewith. P.S. This may be extremely stupid to ask, but is there a way we can debug program in openfoam? Thanks Hrushi |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Floating point exception error | Alan | OpenFOAM Running, Solving & CFD | 11 | July 1, 2021 21:51 |
icoLagrangianFoam OF1.6 myNewParticleSolver | heavy_user | OpenFOAM | 23 | June 2, 2020 02:18 |
pisoFoam - unstable pressure residual | Industrial_CFD | OpenFOAM Running, Solving & CFD | 21 | February 24, 2013 15:39 |
lift and drag on ship superstructures | vaina74 | OpenFOAM Running, Solving & CFD | 3 | June 8, 2010 12:30 |
Unknown error | sivakumar | OpenFOAM Pre-Processing | 9 | September 9, 2008 12:53 |