Inject tracer within the simulation volume via fvOptions
Hello everybody,
I am struggeling with fvOptions in OF2.3.x . I want to use a cellZone as a source of tracer T and solve the equations with scalarTransportFoam on a steady simpleFoam velocity field. I have tube and an obstacle, so I do not want to inject the tracer at the beginning of the tube but right before the obstacle. I want to use the source more or less as a internal "inlet-patch" for the tracer. Values should be 1 in the source and after a while in the whole domain after the source (just like with the fixedValue inlet BC for scalarTransportFoam). I made the cellZone, set up the fvOptions file like this: Code:
tracer Is the source of 1 mole / itteration added to the domain every time step? Can I set a fixedValue BC for fvOption like in inletBC? Every help is thankfully appreciated. Thank you Best regards, Sebastian |
FYI:
I managed the problem in a different way... Copied the scalarTransportFoam and added the following: Code:
// Reading from the tracerInletDict from constant folder |
I have to open the question again...
My proposed solution worked fine on one core. When I run the simulation on a HPC, I can not use my approach. Does anybody have an idea how to run the code in parallel? Or an idea of a different solution? Thanks a lot, Best regards |
Injecting a tracer from a patch inside a geometry
Hallo Foamers, i am new to OpenFoam, i am trying to calculate the RTD over a small section of porous media. This means that i have ti inject my tracer at some plane inside the geometry, to do this, i created an inside patch using topoSet and createBaffles, when i then impose the tracer inlet boundary condition on that boundary condition, my scalarTransportFoam simulation diverges within the first two timesteps. i read one thread mentioning the use of fvOptions, i have never used that before, i need help. While i am still at that. I am using OF9 and it got rid of fvOptions and introduced fvModels and fvConstraints instead. i need help on how i can set up my ksimulation to be able to inject this pulse tracer at an inside zone or patch
Best regards Lucky |
All times are GMT -4. The time now is 15:59. |