Feature moving source

This commit is contained in:
Mattijs Janssens
2024-12-18 17:05:54 +00:00
parent 3d35bb920f
commit e33fb8d0db
10 changed files with 423 additions and 0 deletions

View File

@ -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);
}
}
// ************************************************************************* //

View File

@ -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)))
)

View File

@ -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;
// ************************************************************************* //