CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Internal field manipulation on run-time (https://www.cfd-online.com/Forums/openfoam-solving/64902-internal-field-manipulation-run-time.html)

Martin123 May 28, 2009 03:59

Internal field manipulation on run-time
 
Dear foamers,

I would like to ask sth closely related to my different thread:
http://www.cfd-online.com/Forums/ope...-programs.html

I have an equation e.g. k(x)*gradČu(x) with u as sole DOF and want to manipulate k(x) on run-time, e.g. inserting material inhomogeneities. But I would like to do this on runtime. Can you lead me in the right direction - which modifications are necessary to an existing solver?

Thanks a lot,
Martin

henrik May 29, 2009 09:51

Dear Martin,

the last section of my reply to your other thread contains a code snippet that should give you an idea about how to change a field at runtime.

If not, please let us know where exactly your problem lies.

Henrik

Martin123 June 3, 2009 18:11

Dear Henrik,

again thanks for your help. I will continue commenting in the other thread, actually, I think I had only one problem.

Martin


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