use while (runTime.loop() { .. } where possible in solvers

- change system/controlDict to use functions {..} instead of functions (..);
  * This is internally more efficient
- fixed formatting of system/controlDict functions entry

- pedantic change: use 'return 0' instead of 'return(0)' in the applications,
  since return is a C/C++ keyword, not a function.
This commit is contained in:
Mark Olesen
2009-02-18 08:57:10 +01:00
parent 8b5457a829
commit 4b60453cf1
125 changed files with 398 additions and 367 deletions

View File

@ -44,31 +44,31 @@ timePrecision 6;
runTimeModifiable yes;
functions
(
{
fieldAverage1
{
type fieldAverage;
type fieldAverage;
functionObjectLibs ( "libfieldFunctionObjects.so" );
enabled true;
outputControl outputTime;
enabled true;
outputControl outputTime;
fields
(
U
{
mean on;
prime2Mean on;
base time;
mean on;
prime2Mean on;
base time;
}
p
{
mean on;
prime2Mean on;
base time;
mean on;
prime2Mean on;
base time;
}
);
}
);
}
// ************************************************************************* //

View File

@ -43,7 +43,26 @@ timePrecision 6;
runTimeModifiable yes;
functions ( forces { type forceCoeffs ; functionObjectLibs ( "libforces.so" ) ; patches ( WALL10 ) ; pName p ; UName U ; log true ; rhoInf 1 ; CofR ( 0 0 0 ) ; liftDir ( -0.239733 0.970839 0 ) ; dragDir ( 0.970839 0.239733 0 ) ; pitchAxis ( 0 0 1 ) ; magUInf 618.022 ; lRef 1 ; Aref 1 ; } );
functions
{
forces
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
patches ( WALL10 );
pName p;
UName U;
log true;
rhoInf 1;
CofR ( 0 0 0 );
liftDir ( -0.239733 0.970839 0 );
dragDir ( 0.970839 0.239733 0 );
pitchAxis ( 0 0 1 );
magUInf 618.022;
lRef 1;
Aref 1;
}
}
// ************************************************************************* //