|
[Sponsors] |
October 20, 2010, 13:40 |
applyConstraintsAndThermostats
|
#1 |
Member
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
Dear all
i in OpenFOAM/OpenFOAM-1.6/src/lagrangian/molecularDynamics/molecule at line 1158 we have the constrains and thermostats, yet i cant figure out if this member function is working or not, here it is the function HTML Code:
void Foam::moleculeCloud::applyConstraintsAndThermostats
(
const scalar targetTemperature,
const scalar measuredTemperature
)
{
scalar temperatureCorrectionFactor =
sqrt(targetTemperature/measuredTemperature);
Info<< "----------------------------------------" << nl
<< "Temperature equilibration" << nl
<< "Target temperature = "
<< targetTemperature << nl
<< "Measured temperature = "
<< measuredTemperature << nl
<< "Temperature correction factor = "
<< temperatureCorrectionFactor << nl
<< "----------------------------------------"
<< endl;
iterator mol(this->begin());
for (mol = this->begin(); mol != this->end(); ++mol)
{
mol().v() *= temperatureCorrectionFactor;
mol().pi() *= temperatureCorrectionFactor;
}
}
Thanks |
|
October 20, 2010, 13:50 |
|
#3 |
Member
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
Yes i exactly mean the Info statement, i tried in both serial and parralel, no diffrence.
|
|
October 20, 2010, 13:53 |
|
#4 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
It won't be called then.
If you run in parallel, I think Info will only output for the master processor (correct me if wrong)? If you want it to output the results for each processor you have to use Pout instead of Info.
__________________
Laurence R. McGlashan :: Website |
|
October 20, 2010, 13:55 |
|
#5 |
Member
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
So how can i call it in the molecule.c ?
|
|
|
|