Commit be0008b3 authored by Henry Weller's avatar Henry Weller
Browse files

fvPatchFields: Added "assignable()" attribute

which returns true if the fvPatchField type provides an assignment operator
parent eef9853a
......@@ -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,23 +166,32 @@ public:
}
// Mapping functions
// Member functions
//- Map (and resize as needed) from self given a mapping object
virtual void autoMap
(
const fvPatchFieldMapper&
);
// Attributes
//- Reverse map the given fvPatchField onto this fvPatchField
virtual void rmap
(
const fvPatchField<Type>&,
const labelList&
);
//- Return true: this patch field is altered by assignment
virtual bool assignable() const
{
return true;
}
// Member functions
// Mapping functions
//- Map (and resize as needed) from self given a mapping object
virtual void autoMap
(
const fvPatchFieldMapper&
);
//- Reverse map the given fvPatchField onto this fvPatchField
virtual void rmap
(
const fvPatchField<Type>&,
const labelList&
);
//- Update the coefficients associated with the patch field
virtual void updateCoeffs();
......
Markdown is supported
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