Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0a296832
Commit
0a296832
authored
Mar 01, 2010
by
mattijs
Browse files
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
parents
5ef1bac7
536e2fd4
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/fvMotionSolver/pointPatchFields/derived/angularOscillatingDisplacement/angularOscillatingDisplacementPointPatchVectorField.C
View file @
0a296832
...
...
@@ -123,6 +123,32 @@ angularOscillatingDisplacementPointPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void
angularOscillatingDisplacementPointPatchVectorField
::
autoMap
(
const
pointPatchFieldMapper
&
m
)
{
fixedValuePointPatchField
<
vector
>::
autoMap
(
m
);
p0_
.
autoMap
(
m
);
}
void
angularOscillatingDisplacementPointPatchVectorField
::
rmap
(
const
pointPatchField
<
vector
>&
ptf
,
const
labelList
&
addr
)
{
const
angularOscillatingDisplacementPointPatchVectorField
&
aODptf
=
refCast
<
const
angularOscillatingDisplacementPointPatchVectorField
>
(
ptf
);
fixedValuePointPatchField
<
vector
>::
rmap
(
aODptf
,
addr
);
p0_
.
rmap
(
aODptf
.
p0_
,
addr
);
}
void
angularOscillatingDisplacementPointPatchVectorField
::
updateCoeffs
()
{
if
(
this
->
updated
())
...
...
src/fvMotionSolver/pointPatchFields/derived/angularOscillatingDisplacement/angularOscillatingDisplacementPointPatchVectorField.H
View file @
0a296832
...
...
@@ -132,6 +132,22 @@ public:
// Member functions
// Mapping functions
//- Map (and resize as needed) from self given a mapping object
virtual
void
autoMap
(
const
pointPatchFieldMapper
&
);
//- Reverse map the given pointPatchField onto this pointPatchField
virtual
void
rmap
(
const
pointPatchField
<
vector
>&
,
const
labelList
&
);
// Evaluation functions
//- Update the coefficients associated with the patch field
...
...
src/fvMotionSolver/pointPatchFields/derived/angularOscillatingVelocity/angularOscillatingVelocityPointPatchVectorField.C
View file @
0a296832
...
...
@@ -123,6 +123,32 @@ angularOscillatingVelocityPointPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void
angularOscillatingVelocityPointPatchVectorField
::
autoMap
(
const
pointPatchFieldMapper
&
m
)
{
fixedValuePointPatchField
<
vector
>::
autoMap
(
m
);
p0_
.
autoMap
(
m
);
}
void
angularOscillatingVelocityPointPatchVectorField
::
rmap
(
const
pointPatchField
<
vector
>&
ptf
,
const
labelList
&
addr
)
{
const
angularOscillatingVelocityPointPatchVectorField
&
aOVptf
=
refCast
<
const
angularOscillatingVelocityPointPatchVectorField
>
(
ptf
);
fixedValuePointPatchField
<
vector
>::
rmap
(
aOVptf
,
addr
);
p0_
.
rmap
(
aOVptf
.
p0_
,
addr
);
}
void
angularOscillatingVelocityPointPatchVectorField
::
updateCoeffs
()
{
if
(
this
->
updated
())
...
...
src/fvMotionSolver/pointPatchFields/derived/angularOscillatingVelocity/angularOscillatingVelocityPointPatchVectorField.H
View file @
0a296832
...
...
@@ -132,6 +132,22 @@ public:
// Member functions
// Mapping functions
//- Map (and resize as needed) from self given a mapping object
virtual
void
autoMap
(
const
pointPatchFieldMapper
&
);
//- Reverse map the given pointPatchField onto this pointPatchField
virtual
void
rmap
(
const
pointPatchField
<
vector
>&
,
const
labelList
&
);
// Evaluation functions
//- Update the coefficients associated with the patch field
...
...
src/fvMotionSolver/pointPatchFields/derived/oscillatingVelocity/oscillatingVelocityPointPatchVectorField.C
View file @
0a296832
...
...
@@ -111,6 +111,32 @@ oscillatingVelocityPointPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void
oscillatingVelocityPointPatchVectorField
::
autoMap
(
const
pointPatchFieldMapper
&
m
)
{
fixedValuePointPatchField
<
vector
>::
autoMap
(
m
);
p0_
.
autoMap
(
m
);
}
void
oscillatingVelocityPointPatchVectorField
::
rmap
(
const
pointPatchField
<
vector
>&
ptf
,
const
labelList
&
addr
)
{
const
oscillatingVelocityPointPatchVectorField
&
oVptf
=
refCast
<
const
oscillatingVelocityPointPatchVectorField
>
(
ptf
);
fixedValuePointPatchField
<
vector
>::
rmap
(
oVptf
,
addr
);
p0_
.
rmap
(
oVptf
.
p0_
,
addr
);
}
void
oscillatingVelocityPointPatchVectorField
::
updateCoeffs
()
{
if
(
this
->
updated
())
...
...
src/fvMotionSolver/pointPatchFields/derived/oscillatingVelocity/oscillatingVelocityPointPatchVectorField.H
View file @
0a296832
...
...
@@ -129,6 +129,22 @@ public:
// Member functions
// Mapping functions
//- Map (and resize as needed) from self given a mapping object
virtual
void
autoMap
(
const
pointPatchFieldMapper
&
);
//- Reverse map the given pointPatchField onto this pointPatchField
virtual
void
rmap
(
const
pointPatchField
<
vector
>&
,
const
labelList
&
);
// Evaluation functions
//- Update the coefficients associated with the patch field
...
...
src/postProcessing/functionObjects/forces/pointPatchFields/derived/uncoupledSixDoFRigidBodyDisplacement/uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField.C
View file @
0a296832
...
...
@@ -48,7 +48,7 @@ uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
:
fixedValuePointPatchField
<
vector
>
(
p
,
iF
),
motion_
(),
p0
_
(
p
.
localPoints
()),
initialPoints
_
(
p
.
localPoints
()),
rhoInf_
(
1
.
0
)
{}
...
...
@@ -70,13 +70,13 @@ uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
updateCoeffs
();
}
if
(
dict
.
found
(
"
p0
"
))
if
(
dict
.
found
(
"
initialPoints
"
))
{
p0
_
=
vectorField
(
"
p0
"
,
dict
,
p
.
size
());
initialPoints
_
=
vectorField
(
"
initialPoints
"
,
dict
,
p
.
size
());
}
else
{
p0
_
=
p
.
localPoints
();
initialPoints
_
=
p
.
localPoints
();
}
}
...
...
@@ -92,7 +92,7 @@ uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
:
fixedValuePointPatchField
<
vector
>
(
ptf
,
p
,
iF
,
mapper
),
motion_
(
ptf
.
motion_
),
p0_
(
ptf
.
p0
_
,
mapper
),
initialPoints_
(
ptf
.
initialPoints
_
,
mapper
),
rhoInf_
(
ptf
.
rhoInf_
)
{}
...
...
@@ -106,13 +106,42 @@ uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
:
fixedValuePointPatchField
<
vector
>
(
ptf
,
iF
),
motion_
(
ptf
.
motion_
),
p0_
(
ptf
.
p0
_
),
initialPoints_
(
ptf
.
initialPoints
_
),
rhoInf_
(
ptf
.
rhoInf_
)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
::
autoMap
(
const
pointPatchFieldMapper
&
m
)
{
fixedValuePointPatchField
<
vector
>::
autoMap
(
m
);
initialPoints_
.
autoMap
(
m
);
}
void
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
::
rmap
(
const
pointPatchField
<
vector
>&
ptf
,
const
labelList
&
addr
)
{
const
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
&
uSDoFptf
=
refCast
<
const
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
>
(
ptf
);
fixedValuePointPatchField
<
vector
>::
rmap
(
uSDoFptf
,
addr
);
initialPoints_
.
rmap
(
uSDoFptf
.
initialPoints_
,
addr
);
}
void
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
::
updateCoeffs
()
{
if
(
this
->
updated
())
...
...
@@ -138,7 +167,10 @@ void uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs()
// Do not modify the accelerations, except with gravity, where available
motion_
.
updateForce
(
gravity
*
motion_
.
mass
(),
vector
::
zero
,
t
.
deltaTValue
());
Field
<
vector
>::
operator
=
(
motion_
.
currentPosition
(
p0_
)
-
p0_
);
Field
<
vector
>::
operator
=
(
motion_
.
currentPosition
(
initialPoints_
)
-
initialPoints_
);
fixedValuePointPatchField
<
vector
>::
updateCoeffs
();
}
...
...
@@ -153,7 +185,7 @@ void uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::write
motion_
.
write
(
os
);
os
.
writeKeyword
(
"rhoInf"
)
<<
rhoInf_
<<
token
::
END_STATEMENT
<<
nl
;
p0
_
.
writeEntry
(
"
p0
"
,
os
);
initialPoints
_
.
writeEntry
(
"
initialPoints
"
,
os
);
writeEntry
(
"value"
,
os
);
}
...
...
src/postProcessing/functionObjects/forces/pointPatchFields/derived/uncoupledSixDoFRigidBodyDisplacement/uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField.H
View file @
0a296832
...
...
@@ -57,8 +57,8 @@ class uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
//- Six dof motion object
sixDoFRigidBodyMotion
motion_
;
//-
Reference
positions of points on the patch
pointField
p0
_
;
//-
Initial
positions of points on the patch
pointField
initialPoints
_
;
//- Reference density required by the forces object for
// incompressible calculations. Retained here to give
...
...
@@ -136,6 +136,22 @@ public:
// Member functions
// Mapping functions
//- Map (and resize as needed) from self given a mapping object
virtual
void
autoMap
(
const
pointPatchFieldMapper
&
);
//- Reverse map the given pointPatchField onto this pointPatchField
virtual
void
rmap
(
const
pointPatchField
<
vector
>&
,
const
labelList
&
);
// Evaluation functions
//- Update the coefficients associated with the patch field
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment