mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Feature moving source
This commit is contained in:
@ -0,0 +1,61 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2312 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object fvOptions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
scalarSource1
|
||||
{
|
||||
type scalarSemiImplicitSource;
|
||||
|
||||
volumeMode absolute;
|
||||
|
||||
selectionMode geometric;
|
||||
selection
|
||||
{
|
||||
cylinder
|
||||
{
|
||||
action use;
|
||||
source cylinder;
|
||||
|
||||
point1 (0.05 0.03 -1); // beg point on cylinder axis
|
||||
point2 (0.05 0.03 1); // end point on cylinder axis
|
||||
radius 0.003;
|
||||
|
||||
solidBodyMotionFunction oscillatingLinearMotion;
|
||||
oscillatingLinearMotionCoeffs
|
||||
{
|
||||
// coefficients
|
||||
amplitude (0 0.02 0);
|
||||
omega 0.628318530718; // rad/s
|
||||
}
|
||||
|
||||
/*
|
||||
solidBodyMotionFunction tabulated6DoFMotion;
|
||||
tabulated6DoFMotionCoeffs
|
||||
{
|
||||
// coefficients
|
||||
timeDataFileName "<constant>/meshMotion.dat";
|
||||
CofG (0 0 0);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
sources
|
||||
{
|
||||
T (1e-4 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,18 @@
|
||||
4
|
||||
(
|
||||
// Time Linear (xyz) Rotation (xyz)
|
||||
(0 ((0 0 0) (0 0 0)))
|
||||
(1 ((0 0.02 0) (0 0 0)))
|
||||
(2 ((0 -0.02 0) (0 0 0)))
|
||||
(3 ((0 0 0) (0 0 0)))
|
||||
(4 ((0 -0.02 0) (0 0 0)))
|
||||
(5 ((0 0.02 0) (0 0 0)))
|
||||
(6 ((0 0 0) (0 0 0)))
|
||||
(7 ((0 0.02 0) (0 0 0)))
|
||||
(8 ((0 -0.02 0) (0 0 0)))
|
||||
(9 ((0 0 0) (0 0 0)))
|
||||
(10 ((0 -0.02 0) (0 0 0)))
|
||||
(11 ((0 0.02 0) (0 0 0)))
|
||||
(12 ((0 0 0) (0 0 0)))
|
||||
)
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2312 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object transportProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
DT 0; //0.01;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user