CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   setfield new variable from the middle of simulation (https://www.cfd-online.com/Forums/openfoam-pre-processing/169279-setfield-new-variable-middle-simulation.html)

smraniaki April 6, 2016 17:31

setfield new variable from the middle of simulation
 
Hello,

I want to set temperature to a droplet after some evolution of the interface. My alpha field has been changed from spherical shape (droplet) to an elliptical shape after sometimes and now its time to set a temperature to my droplet. how can I do that without overwriting alpha. Basically I want to take the same alpha field that has been evolved and assign a temperature field to that alpha field. I know I can set them(alpha and temperature) from the beginning but I am looking for a solution to set the temperature from mid way. Does anybody know how to do that?

Thanks,
Smran

rapierrz April 10, 2016 15:32

Hi smraniaki,

You can use of funkySetField in swak4foam package.

in funkySetField you can define that under specific conditions,a specific field

apply to the domain.this condition can be time or another filed or ... .

smraniaki April 10, 2016 16:10

Thanks
 
Hello Hesam,

Thank you for your advice. I've never used the funkysetfield package. can yo elaborate more or do you have a script sample of funky package that does what I want or similar to that so I get to the point quickly?

Thank you,
Smran

joshmccraney September 13, 2022 23:31

Quote:

Originally Posted by smraniaki (Post 594362)
Hello Hesam,

Thank you for your advice. I've never used the funkysetfield package. can yo elaborate more or do you have a script sample of funky package that does what I want or similar to that so I get to the point quickly?

Thank you,
Smran

Were you ever able to get funkysetfields to modify the field properties mid simulation?


All times are GMT -4. The time now is 00:58.