CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Writing a new type of solver in a Foam-y format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2016, 07:17
Default Writing a new type of solver in a Foam-y format
  #1
New Member
 
Paul
Join Date: Jun 2016
Posts: 21
Rep Power: 9
ChasingNeutrons is on a distinguished road
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)
)
My problem is I'm not entirely sure where to begin - where can I create my MOC::dds() for example? Where can I modify the solve function? Any help would be very much appreciated and I would happily share my code if it would help explain the situation.

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.
ChasingNeutrons is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:50.