Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
be0008b3
Commit
be0008b3
authored
Feb 12, 2016
by
Henry Weller
Browse files
fvPatchFields: Added "assignable()" attribute
which returns true if the fvPatchField type provides an assignment operator
parent
eef9853a
Changes
22
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H
View file @
be0008b3
...
...
@@ -138,7 +138,7 @@ public:
// Member functions
// A
cc
es
s
// A
ttribut
es
//- Return true if this patch field fixes a value.
// Needed to check if a level has to be specified while solving
...
...
src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.H
View file @
be0008b3
...
...
@@ -130,9 +130,9 @@ public:
// Member functions
// A
cc
es
s
// A
ttribut
es
//- 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
...
...
src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.H
View file @
be0008b3
...
...
@@ -150,7 +150,7 @@ public:
// Member functions
// A
cc
es
s
// A
ttribut
es
//- 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
...
...
src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.H
View file @
be0008b3
...
...
@@ -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
...
...
src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.H
View file @
be0008b3
...
...
@@ -131,7 +131,7 @@ public:
// Member functions
// A
cc
es
s
// A
ttribut
es
//- 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
...
...
src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.H
View file @
be0008b3
...
...
@@ -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
...
...
src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -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
...
...
src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.H
View file @
be0008b3
...
...
@@ -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
...
...
src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.H
View file @
be0008b3
...
...
@@ -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
();
...
...
src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.H
View file @
be0008b3
...
...
@@ -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
...
...
src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
4
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
();
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.H
View file @
be0008b3
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
6
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
...
...
src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.H
View file @
be0008b3
...
...
@@ -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) {}
};
...
...
src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H
View file @
be0008b3
...
...
@@ -166,23 +166,32 @@ public:
}
// M
apping
functions
// M
ember
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
();
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment