mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: fieldSources - added ability to apply source to eqn with specified name
This commit is contained in:
@ -100,6 +100,10 @@ public:
|
||||
template<class Type>
|
||||
void apply(fvMatrix<Type>& eqn);
|
||||
|
||||
//- Apply sources to equation with specified name
|
||||
template<class Type>
|
||||
void apply(fvMatrix<Type>& eqn, const word& name);
|
||||
|
||||
|
||||
// I-O
|
||||
|
||||
|
||||
@ -28,9 +28,14 @@ License
|
||||
template<class Type>
|
||||
void Foam::basicSourceList::apply(fvMatrix<Type>& eqn)
|
||||
{
|
||||
checkApplied();
|
||||
apply(eqn, eqn.psi().name());
|
||||
}
|
||||
|
||||
const word& fieldName = eqn.psi().name();
|
||||
|
||||
template<class Type>
|
||||
void Foam::basicSourceList::apply(fvMatrix<Type>& eqn, const word& fieldName)
|
||||
{
|
||||
checkApplied();
|
||||
|
||||
forAll(*this, i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user