|
[Sponsors] |
December 21, 2013, 14:59 |
Creating time/temp dependant variable
|
#1 |
Member
Join Date: Aug 2013
Posts: 60
Rep Power: 12 |
I am trying to create a time and temperature dependant variable within the solidDisplacementFoam solver, currently the value is defined as a constant volScalarField as shown:
volScalarField mu("mu", E/(2.0*(1.0 + nu))); I need this to change in the following way: When reaching a certain temperature it should start increasing at a constant rate in time up till reaching a final value at which it stops increasing. I attempted to do this by adding the following code into the main .C file: Code:
forAll(mu.internalField(), cellI) { if(T.internalField()[cellI]>330){ mu.internalField()[cellI] = 10e+06; } } mu.correctBoundaryConditions(); Any help at all with this problem would be greatly appreciated. Thank you. Last edited by sur4j; December 22, 2013 at 06:07. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 09:14 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 04:35 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 04:27 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |