fvPatchFields: Added "assignable()" attribute
which returns true if the fvPatchField type provides an assignment operator
This commit is contained in:
@ -138,7 +138,7 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Access
|
||||
// Attributes
|
||||
|
||||
//- Return true if this patch field fixes a value.
|
||||
// Needed to check if a level has to be specified while solving
|
||||
|
||||
@ -130,9 +130,9 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Access
|
||||
// Attributes
|
||||
|
||||
//- Return true if this patch field fixes a value.
|
||||
//- Return true: this patch field fixes a value.
|
||||
// Needed to check if a level has to be specified while solving
|
||||
// Poissons equations.
|
||||
virtual bool fixesValue() const
|
||||
@ -140,6 +140,12 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Mapping functions
|
||||
|
||||
|
||||
@ -150,7 +150,7 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Access
|
||||
// Attributes
|
||||
|
||||
//- Return true if this patch field fixes a value.
|
||||
// Needed to check if a level has to be specified while solving
|
||||
@ -160,6 +160,12 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
|
||||
@ -179,6 +179,12 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Return defining fields
|
||||
|
||||
|
||||
@ -131,7 +131,7 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Access
|
||||
// Attributes
|
||||
|
||||
//- Return true if this patch field fixes a value.
|
||||
// Needed to check if a level has to be specified while solving
|
||||
@ -141,6 +141,12 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
|
||||
@ -113,6 +113,16 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true if the value of the patch field
|
||||
// is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Evaluation functions
|
||||
|
||||
//- Return gradient at boundary
|
||||
|
||||
@ -186,6 +186,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of phi
|
||||
|
||||
@ -149,6 +149,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Access
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Mapping functions
|
||||
|
||||
//- Map (and resize as needed) from self given a mapping object
|
||||
|
||||
@ -165,6 +165,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
virtual void updateCoeffs();
|
||||
|
||||
|
||||
@ -150,6 +150,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Mapping functions
|
||||
|
||||
//- Map (and resize as needed) from self given a mapping object
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -185,6 +185,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the phaseName
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -177,6 +177,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of rho
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -173,6 +173,14 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of rho
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -173,6 +173,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of rho
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -163,6 +163,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of phi
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -138,6 +138,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
virtual void updateCoeffs();
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -156,6 +156,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of rho
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -172,6 +172,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of rho
|
||||
|
||||
@ -130,6 +130,40 @@ public:
|
||||
new slipFvPatchField<Type>(*this, iF)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return false: this patch field is not altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
// virtual void operator=(const UList<Type>&) {}
|
||||
|
||||
// virtual void operator=(const fvPatchField<Type>&) {}
|
||||
// virtual void operator+=(const fvPatchField<Type>&) {}
|
||||
// virtual void operator-=(const fvPatchField<Type>&) {}
|
||||
// virtual void operator*=(const fvPatchField<scalar>&) {}
|
||||
// virtual void operator/=(const fvPatchField<scalar>&) {}
|
||||
|
||||
// virtual void operator+=(const Field<Type>&) {}
|
||||
// virtual void operator-=(const Field<Type>&) {}
|
||||
|
||||
// virtual void operator*=(const Field<scalar>&) {}
|
||||
// virtual void operator/=(const Field<scalar>&) {}
|
||||
|
||||
// virtual void operator=(const Type&) {}
|
||||
// virtual void operator+=(const Type&) {}
|
||||
// virtual void operator-=(const Type&) {}
|
||||
// virtual void operator*=(const scalar) {}
|
||||
// virtual void operator/=(const scalar) {}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -166,6 +166,17 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Mapping functions
|
||||
|
||||
//- Map (and resize as needed) from self given a mapping object
|
||||
@ -182,8 +193,6 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Member functions
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
virtual void updateCoeffs();
|
||||
|
||||
|
||||
@ -300,6 +300,33 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return the type of the calculated for of fvPatchField
|
||||
static const word& calculatedType();
|
||||
|
||||
//- Return true if this patch field fixes a value.
|
||||
// Needed to check if a level has to be specified while solving
|
||||
// Poissons equations.
|
||||
virtual bool fixesValue() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//- Return true if the value of the patch field
|
||||
// is altered by assignment (the default)
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//- Return true if this patch field is coupled
|
||||
virtual bool coupled() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return local objectRegistry
|
||||
@ -336,23 +363,6 @@ public:
|
||||
return patchType_;
|
||||
}
|
||||
|
||||
//- Return the type of the calculated for of fvPatchField
|
||||
static const word& calculatedType();
|
||||
|
||||
//- Return true if this patch field fixes a value.
|
||||
// Needed to check if a level has to be specified while solving
|
||||
// Poissons equations.
|
||||
virtual bool fixesValue() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//- Return true if this patch field is coupled
|
||||
virtual bool coupled() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//- Return true if the boundary condition has already been updated
|
||||
bool updated() const
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -177,6 +177,15 @@ public:
|
||||
|
||||
// Member functions
|
||||
|
||||
// Attributes
|
||||
|
||||
//- Return true: this patch field is altered by assignment
|
||||
virtual bool assignable() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the name of phi
|
||||
|
||||
Reference in New Issue
Block a user