CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   setFields -time <range> ? (http://www.cfd-online.com/Forums/openfoam-solving/114865-setfields-time-range.html)

wolfindark March 19, 2013 06:48

setFields -time <range> ?
 
Dear All,

by using "setFields -time 0,20 " is it possible to give a same constant temperature value to some cells at every time step during 20 seconds?

I tried but does not work.

pleased if you could give some idea how can I do that?

best regards

mturcios777 March 19, 2013 13:18

setFields will change fields that already exist, so all you could do with your command is apply the setFieldsDict commands to 0-20. If you want a source term during simulation, you'll have to either:

1. Program it into your solver
2. In 2.1.x, use the sources option
3. In 2.2.x, use fvOptions

wolfindark March 19, 2013 20:53

thank you mutircios

i use OF2.1.1, buoyantBoussineqPimpleFoam solver.
By using sources option do you think i can determine a spherical volume inside the fluid region as a heat source?
regards

mturcios777 March 20, 2013 13:45

Yes indeed. I haven't used sources much so I'm not overly familiar with it, so you'll have to do some digging.


All times are GMT -4. The time now is 01:28.