mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
@ -61,7 +61,7 @@ void surfaceNoise::initialise(const dictionary& dict)
|
|||||||
readerPtr_.reset(surfaceReader::New(readerType, inputFileName_).ptr());
|
readerPtr_.reset(surfaceReader::New(readerType, inputFileName_).ptr());
|
||||||
|
|
||||||
// Find the index of the pressure data
|
// Find the index of the pressure data
|
||||||
const word pName(dict.lookupOrDefault<word>("pName", "p"));
|
const word pName(dict.lookupOrDefault<word>("p", "p"));
|
||||||
const List<word> fieldNames(readerPtr_->fieldNames(0));
|
const List<word> fieldNames(readerPtr_->fieldNames(0));
|
||||||
pIndex_ = findIndex(fieldNames, pName);
|
pIndex_ = findIndex(fieldNames, pName);
|
||||||
if (pIndex_ == -1)
|
if (pIndex_ == -1)
|
||||||
|
|||||||
@ -48,19 +48,6 @@ runTimeModifiable yes;
|
|||||||
adjustTimeStep yes;
|
adjustTimeStep yes;
|
||||||
|
|
||||||
maxCo 5;
|
maxCo 5;
|
||||||
functions
|
|
||||||
{
|
|
||||||
mag(U)
|
|
||||||
{
|
|
||||||
type mag;
|
|
||||||
libs ( "libfieldFunctionObjects.so" );
|
|
||||||
field U;
|
|
||||||
executeControl writeTime;
|
|
||||||
writeControl writeTime;
|
|
||||||
fields 1 ( U );
|
|
||||||
result myMagU;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user