mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: relocate commonly used ensight components to fileFormats
- use explicit names within ensightPTraits
This commit is contained in:
@ -7,16 +7,12 @@ common/writer/meshWriter.C
|
||||
common/tables/boundaryRegion.C
|
||||
common/tables/cellTable.C
|
||||
|
||||
ensight/file/ensightFile.C
|
||||
ensight/file/ensightGeoFile.C
|
||||
ensight/readFile/ensightReadFile.C
|
||||
ensight/part/ensightPart.C
|
||||
ensight/part/ensightPartIO.C
|
||||
ensight/part/ensightPartCells.C
|
||||
ensight/part/ensightPartFaces.C
|
||||
ensight/part/ensightParts.C
|
||||
|
||||
|
||||
starcd/STARCDMeshReader.C
|
||||
starcd/STARCDMeshWriter.C
|
||||
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
ensight/file/ensightFile.C
|
||||
ensight/file/ensightGeoFile.C
|
||||
ensight/read/ensightReadFile.C
|
||||
ensight/type/ensightPTraits.C
|
||||
|
||||
vtk/vtkUnstructuredReader.C
|
||||
nas/NASCore.C
|
||||
starcd/STARCDCore.C
|
||||
@ -8,7 +13,6 @@ setWriters = sampledSetWriters
|
||||
|
||||
$(setWriters)/writers.C
|
||||
$(setWriters)/ensight/ensightSetWriterRunTime.C
|
||||
$(setWriters)/ensight/ensightPTraits.C
|
||||
$(setWriters)/gnuplot/gnuplotSetWriterRunTime.C
|
||||
$(setWriters)/jplot/jplotSetWriterRunTime.C
|
||||
$(setWriters)/raw/rawSetWriterRunTime.C
|
||||
|
||||
@ -28,56 +28,51 @@ License
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
template<>
|
||||
const char* const Foam::ensightPTraits<Foam::scalar>::typeName =
|
||||
Foam::pTraits<Foam::scalar>::typeName;
|
||||
const char* const
|
||||
Foam::ensightPTraits<Foam::scalar>::typeName = "scalar";
|
||||
|
||||
template<>
|
||||
const Foam::direction
|
||||
Foam::ensightPTraits<Foam::scalar>::componentOrder[] = {0};
|
||||
|
||||
|
||||
template<>
|
||||
const char* const Foam::ensightPTraits<Foam::vector>::typeName =
|
||||
Foam::pTraits<Foam::vector>::typeName;
|
||||
const char* const
|
||||
Foam::ensightPTraits<Foam::vector>::typeName = "vector";
|
||||
|
||||
template<>
|
||||
const Foam::direction
|
||||
Foam::ensightPTraits<Foam::vector>::componentOrder[] = {0, 1, 2};
|
||||
|
||||
|
||||
// use mag(sphericalTensor) instead
|
||||
template<>
|
||||
const char* const Foam::ensightPTraits<Foam::sphericalTensor>::typeName =
|
||||
Foam::pTraits<Foam::scalar>::typeName;
|
||||
const char* const
|
||||
Foam::ensightPTraits<Foam::sphericalTensor>::typeName = "scalar";
|
||||
|
||||
|
||||
template<>
|
||||
const Foam::direction
|
||||
Foam::ensightPTraits<Foam::sphericalTensor>::componentOrder[] = {0};
|
||||
|
||||
template<>
|
||||
const char* const Foam::ensightPTraits<Foam::symmTensor>::typeName =
|
||||
"tensor symm";
|
||||
const char* const
|
||||
Foam::ensightPTraits<Foam::symmTensor>::typeName = "tensor symm";
|
||||
|
||||
|
||||
template<>
|
||||
const Foam::direction
|
||||
Foam::ensightPTraits<Foam::symmTensor>::componentOrder[] = {0, 3, 5, 1, 2, 4};
|
||||
|
||||
|
||||
template<>
|
||||
const char* const Foam::ensightPTraits<Foam::tensor>::typeName =
|
||||
"tensor asym";
|
||||
const char* const
|
||||
Foam::ensightPTraits<Foam::tensor>::typeName = "tensor asym";
|
||||
|
||||
template<>
|
||||
const Foam::direction
|
||||
Foam::ensightPTraits<Foam::tensor>::componentOrder[] =
|
||||
{
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8
|
||||
};
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8 };
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user