|
[Sponsors] |
Writing a new type of solver in a Foam-y format |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 20, 2016, 07:17 |
Writing a new type of solver in a Foam-y format
|
#1 |
New Member
Paul
Join Date: Jun 2016
Posts: 21
Rep Power: 9 |
Hi everyone,
I have developed a new solver on OpenFOAM - it's used for neutron transport and, at least on the surface, isn't equivalent to finite volume methods. A bit of a preface on how this solver works: it ray traces across a geometry from a number of different starting points and at a number of different angles. It then iterates on boundary flux values streaming along these rays to calculate cell values of the field I'm interested in, given a source. This field is then used to calculate an eigenvalue and a new source and the process is repeated until the eigenvalue and the field have converged. It's a method of characteristics neutron transport solver (or MOC). My problem is that I would very much like to recast this program in a Foam-y way where I can put the field I'm interested in, the ray tracing information, the eigenvalue and other source terms in a form like: Code:
solve ( MOC::dds(boundaryFlux,rays) + (sigmaT, boundaryFlux) == MOC::Source(eigenvalue, chiNuSigmaEff, flux) + MOC::Source(SigmaS,flux) ) Cheers. Edit: To clarify, the above isn't necessarily how I want my solver to be written but somewhere along those lines would be ideal, subject to whatever constraints may exist. Last edited by ChasingNeutrons; December 20, 2016 at 09:52. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 00:21 |
singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 17:18 |
[Other] cgnsToFoam problems with "QUAD_4" cells | lentschi | OpenFOAM Meshing & Mesh Conversion | 1 | March 9, 2011 04:49 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 04:38 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |