Forum: OpenFOAM Running, Solving & CFD
August 3, 2022, 10:28
|
Replies: 82
Views: 18,993
Hi Siddhartha,
Please give more details,...
Hi Siddhartha,
Please give more details, including, what value (or gradient or combination) you are trying to enforce on the boundary. In addition, please give details of what you have tried so...
|
Forum: OpenFOAM Running, Solving & CFD
December 14, 2021, 08:28
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
December 14, 2021, 07:45
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
December 14, 2021, 06:09
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
December 13, 2021, 08:06
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
September 7, 2020, 10:18
|
Replies: 82
Views: 18,993
Hi Shiyu,
In the code you have shown, the...
Hi Shiyu,
In the code you have shown, the boundary value is updated explicitly using the latest value of the internal field. So when the equation is solved after this, the boundary value does not...
|
Forum: OpenFOAM Running, Solving & CFD
July 26, 2018, 10:33
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
July 26, 2018, 04:33
|
Replies: 82
Views: 18,993
Hi Tar,
OK, I understand a bit better now. ...
Hi Tar,
OK, I understand a bit better now.
Why not? The divergence of a vector field is a scalar field.
You can explicitly calculate the term \nabla \cdot [(I - nn) \cdot (I - nn) \cdot...
|
Forum: OpenFOAM Running, Solving & CFD
July 25, 2018, 09:45
|
Replies: 82
Views: 18,993
Hi Tar,
I am not quite sure what a...
Hi Tar,
I am not quite sure what a tangential Laplacian operator is (maybe it is like div(grad(PotE).T() ...?), but your proposed formulae/code look very strange to me.
I suggest you examine...
|
Forum: OpenFOAM Running, Solving & CFD
July 24, 2018, 11:59
|
Replies: 82
Views: 18,993
Hi Tar,
Removing the "const" in this case...
Hi Tar,
Removing the "const" in this case will fix it; also, you could use boundaryField instead of boundaryFieldRef for the boundary of gradPotE. Both will act the same.
Philip
|
Forum: OpenFOAM Running, Solving & CFD
July 24, 2018, 07:55
|
Replies: 82
Views: 18,993
Your proposed code for applying a spatially...
Your proposed code for applying a spatially varying condition look fine to me.
As regards the tangential gradient at the boundary, OpenFOAM uses the tangential gradient at the closest cell-centre...
|
Forum: OpenFOAM Running, Solving & CFD
July 23, 2018, 14:12
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
July 23, 2018, 11:56
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
July 20, 2018, 13:13
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
November 8, 2017, 15:55
|
Replies: 82
Views: 18,993
Hi Amir,
OK, so if you intend to set the...
Hi Amir,
OK, so if you intend to set the value of omega at the patch faces then I suggest you use the fixedValue patch type (for your patch in 0/omega); then the code becomes more simple:
...
|
Forum: OpenFOAM Running, Solving & CFD
November 8, 2017, 13:26
|
Replies: 82
Views: 18,993
Hi Amir,
The cleanest method would be to...
Hi Amir,
The cleanest method would be to write a new boundary condition for omega where you can directly update the boundary values for omega.
However, it is possible to do it by adding code to...
|
Forum: OpenFOAM Running, Solving & CFD
November 8, 2017, 08:20
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
May 29, 2017, 14:10
|
Replies: 82
Views: 18,993
Hi Simone,
This error:
error: passing...
Hi Simone,
This error:
error: passing ‘const Foam::fvPatchField<double>’ as ‘this’ argument of ‘void Foam::fvPatchField<Type>::operator=(const Foam::UList<T>&) [with Type = double]’ discards...
|
Forum: OpenFOAM Running, Solving & CFD
September 26, 2016, 10:28
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
September 23, 2016, 08:06
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
June 26, 2015, 19:09
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
June 26, 2015, 18:09
|
Replies: 82
Views: 18,993
fvPatchField::snGrad() return a tmp copy of a...
fvPatchField::snGrad() return a tmp copy of a scalarField (see OpenFOAM C++ doxygen documentation (http://foam.sourceforge.net/docs/cpp/a00870.html#aee44c456744b9ed5f206a9027bb93f8a)); so to get your...
|
Forum: OpenFOAM Running, Solving & CFD
September 10, 2012, 14:17
|
Replies: 82
Views: 18,993
|
Forum: OpenFOAM Running, Solving & CFD
September 10, 2012, 10:03
|
Replies: 82
Views: 18,993
Hi Wei,
To answer your first question, to...
Hi Wei,
To answer your first question, to calculate the full gradient (tensor) at the boundary face you use the fvc::grad operator as you have shown:
tensor faceCellGradientU =...
|
Forum: OpenFOAM Running, Solving & CFD
August 30, 2012, 08:50
|
Replies: 82
Views: 18,993
Hi Wei,
You can set non-uniform boundary...
Hi Wei,
You can set non-uniform boundary values based on anything you want:
// find ID of patch
label patchID = mesh.boundaryMesh().findPatchID("patch_of_interest");
// check patch has been...
|