Skip to content
Snippets Groups Projects
Commit 28bcc04c authored by Henry's avatar Henry
Browse files

fvmDdt: add support for 3-argument ddt with the first and or second arguments being "one"

parent fc3883d1
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -99,6 +99,45 @@ ddt
}
template<class Type>
tmp<fvMatrix<Type> >
ddt
(
const one&,
const one&,
const GeometricField<Type, fvPatchField, volMesh>& vf
)
{
return ddt(vf);
}
template<class Type>
tmp<fvMatrix<Type> >
ddt
(
const one&,
const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& vf
)
{
return ddt(rho, vf);
}
template<class Type>
tmp<fvMatrix<Type> >
ddt
(
const volScalarField& alpha,
const one&,
const GeometricField<Type, fvPatchField, volMesh>& vf
)
{
return ddt(alpha, vf);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace fvm
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -76,6 +76,30 @@ namespace fvm
const volScalarField&,
const GeometricField<Type, fvPatchField, volMesh>&
);
template<class Type>
tmp<fvMatrix<Type> > ddt
(
const one&,
const one&,
const GeometricField<Type, fvPatchField, volMesh>&
);
template<class Type>
tmp<fvMatrix<Type> > ddt
(
const one&,
const volScalarField&,
const GeometricField<Type, fvPatchField, volMesh>&
);
template<class Type>
tmp<fvMatrix<Type> > ddt
(
const volScalarField&,
const one&,
const GeometricField<Type, fvPatchField, volMesh>&
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment