pbnh / unh-aquaponics

1 stars 1 forks source link

Scalar transport function object #18

Open petebachant opened 8 years ago

petebachant commented 8 years ago

On the current transientConcentration you're using an fvOption to set the concentration at the inlet. It may be better to use an inlet boundary condition. See the T, scalarTransport, and scalarTransport.cfg files here: https://github.com/OpenFOAM/OpenFOAM-3.0.x/tree/master/etc/caseDicts/postProcessing/scalarTransport. T is the scalar transport initial boundary condition, for which you'd put a similar file in 0.org.

pbnh commented 8 years ago

Hey Pete, thanks for your help. I took out the fvOption section in the controlDict and added the T file to 0.org. I'm getting an error in the pisoFoam log that says, "keyword fvOptions is undefined in dictionary "IOstream.functions.dyeTransport" Do you have any suggestions? I pushed everything to transientConcentration branch. Thanks!

petebachant commented 8 years ago

I guess fvOptions needs to be defined inside that function object. Maybe your previous configuration was better, or you can try adding an empty entry, i.e.,

dyeTransport
{
    # all your other stuff here
   fvOptions {};
}

Not sure if that'll work since I've never used that function object before. Also note that in the controlDict you have

#include "scalarTransport"

which will basically dump everything in that file where that include is called. That seems redundant since you're already defining the dyeTransport function.