mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@ -111,9 +111,13 @@ Note
|
|||||||
coordinateSystem
|
coordinateSystem
|
||||||
{
|
{
|
||||||
origin (0 0 0);
|
origin (0 0 0);
|
||||||
|
coordinateRotation
|
||||||
|
{
|
||||||
|
type axesRotation;
|
||||||
e3 (0 0 1);
|
e3 (0 0 1);
|
||||||
e1 (1 0 0);
|
e1 (1 0 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|
||||||
See also
|
See also
|
||||||
|
|||||||
@ -43,11 +43,16 @@ Description
|
|||||||
|
|
||||||
coordinateSystem
|
coordinateSystem
|
||||||
{
|
{
|
||||||
|
origin (0 0 0);
|
||||||
|
coordinateRotation
|
||||||
|
{
|
||||||
|
type axesRotation;
|
||||||
e1 (0.70710678 0.70710678 0);
|
e1 (0.70710678 0.70710678 0);
|
||||||
e2 (0 0 1);
|
e2 (0 0 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|
||||||
Note
|
Note
|
||||||
|
|||||||
@ -147,9 +147,21 @@ Foam::coordinateSystem::coordinateSystem
|
|||||||
{
|
{
|
||||||
const entry* entryPtr = dict.lookupEntryPtr(typeName_(), false, false);
|
const entry* entryPtr = dict.lookupEntryPtr(typeName_(), false, false);
|
||||||
|
|
||||||
// non-dictionary entry is a lookup into global coordinateSystems
|
if (!entryPtr)
|
||||||
if (entryPtr && !entryPtr->isDict())
|
|
||||||
{
|
{
|
||||||
|
// No 'coordinateSystem' entry
|
||||||
|
init(dict, obr);
|
||||||
|
}
|
||||||
|
else if (entryPtr->isDict())
|
||||||
|
{
|
||||||
|
// 'coordinateSystem' as dictionary entry - use it
|
||||||
|
init(entryPtr->dict(), obr);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// 'coordinateSystem' as non-dictionary entry
|
||||||
|
// - this is a lookup into global coordinateSystems
|
||||||
|
|
||||||
keyType key(entryPtr->stream());
|
keyType key(entryPtr->stream());
|
||||||
|
|
||||||
const coordinateSystems& lst = coordinateSystems::New(obr);
|
const coordinateSystems& lst = coordinateSystems::New(obr);
|
||||||
@ -170,15 +182,11 @@ Foam::coordinateSystem::coordinateSystem
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy coordinateSystem, but assign the name as the typeName
|
// Copy from coordinateSystem, but assign the name as the typeName
|
||||||
// to avoid strange things in writeDict()
|
// to avoid strange things in writeDict()
|
||||||
operator=(lst[index]);
|
operator=(lst[index]);
|
||||||
name_ = typeName_();
|
name_ = typeName_();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
init(dict, obr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -351,7 +351,8 @@ bool Foam::rigidBodyMeshMotion::writeObject
|
|||||||
);
|
);
|
||||||
|
|
||||||
model_.state().write(dict);
|
model_.state().write(dict);
|
||||||
return dict.regIOobject::write();
|
// Force ascii writing
|
||||||
|
return dict.regIOobject::writeObject(IOstream::ASCII, ver, cmp, valid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -293,7 +293,8 @@ bool Foam::rigidBodyMeshMotionSolver::writeObject
|
|||||||
);
|
);
|
||||||
|
|
||||||
model_.state().write(dict);
|
model_.state().write(dict);
|
||||||
return dict.regIOobject::write();
|
// Force ascii writing
|
||||||
|
return dict.regIOobject::writeObject(IOstream::ASCII, ver, cmp, valid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user