Skip to content
Snippets Groups Projects
Commit 00e73a48 authored by andy's avatar andy
Browse files

BUG: CSV data entry - corrected writing - mantis #971

parent 395cde4e
Branches
Tags
No related merge requests found
......@@ -50,10 +50,7 @@ Foam::Ostream& Foam::operator<<
}
// Check state of Ostream
os.check
(
"Ostream& operator<<(Ostream&, const CSV<Type>&)"
);
os.check("Ostream& operator<<(Ostream&, const CSV<Type>&)");
return os;
}
......@@ -83,11 +80,15 @@ void Foam::CSV<Type>::writeData(Ostream& os) const
os << componentColumns_;
os.format(IOstream::BINARY);
}
else
{
os << componentColumns_;
}
os << token::END_STATEMENT << nl;
os.writeKeyword("separator") << string(separator_)
<< token::END_STATEMENT << nl;
os.writeKeyword("mergeSeparators") << string(mergeSeparators_)
os.writeKeyword("mergeSeparators") << mergeSeparators_
<< token::END_STATEMENT << nl;
os.writeKeyword("fileName") << fName_ << token::END_STATEMENT << nl;
os << decrIndent << indent << token::END_BLOCK << endl;
......
......@@ -22,8 +22,17 @@ boundaryField
{
movingWall
{
type fixedValue;
value uniform (1 0 0);
type uniformFixedValue;
uniformValue csvFile;
csvFileCoeffs
{
nHeaderLine 1;
refColumn 0;
componentColumns (1 2 3);
mergeSeparators no;
fileName "$FOAM_CASE/csvData";
separator " ";
}
}
fixedWalls
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment