How to set and read time-dependent source terms
Dear Foamers,
I would like to read a time-dependent source term, which can be defined by a function in a file in the case directory and read from the solver itself. So far I managed to set the source term using funkySetFields, but only as initial condition. My approach is the following: In createFields.H the field of the mass source is defined as follows: Code:
Code:
fvScalarMatrix rhoEqn Code:
massSource Thank you for any ideas. D. |
you can use the source term as a boundary condition, in that case you can easily use groovyBC.Or if you can access to the 'internalField' when creating source object, you might be able to do this.
|
You could also use the equationReader extension. I'm working on a paper that will demonstrate this exact idea using it.
|
Quote:
|
All times are GMT -4. The time now is 02:06. |