|
[Sponsors] |
Boundary condition derived from cyclicFvPatchScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2016, 07:16 |
Boundary condition derived from cyclicFvPatchScalarField
|
#1 |
New Member
Join Date: Dec 2015
Posts: 24
Rep Power: 10 |
Dear foamers
I would like to create a boundary condition derived from cyclicFvPatchScalarField. The ultimate objective is to have inletOutlet functionality on a cyclic patch. I've tried to overload updateCoeffs: Code:
void cyclicInletOutlet::updateCoeffs() { scalarField::operator =(-999.0); } It seems to me that it is necessary to overload properly: Code:
void cyclicInletOutlet::updateInterfaceMatrix ( scalarField& result, const scalarField& psiInternal, const scalarField& coeffs, const direction cmpt, const Pstream::commsTypes ) const {} Although I know that the function arguments are related to the linear system, I don't know its actual meaning. I presume that "result" is related with the independent term of the linear system, coeffs are the fv coefficents, "psi" may also refer to the unkwowns, etc. I would like to implement a very simple inletOutlet BC, namely: Code:
".*" { type inletOutlet; value 0; inletValue uniform 0; } Can somebody provide an example of updateInterfaceMatrix overriding? Thanks so much |
|
September 26, 2016, 03:37 |
|
#2 |
New Member
Karl Lindqvist
Join Date: Jul 2012
Posts: 21
Rep Power: 13 |
Metalfox,
Did you find a solution to your problem with the cyclic boundary condition? I am also trying to modify a cyclic BC, so it would be nice to see examples of a successful attempt. Hope you are able to share it! Best regards, Karl |
|
September 27, 2016, 03:29 |
|
#3 | |
New Member
Join Date: Dec 2015
Posts: 24
Rep Power: 10 |
Quote:
If I revisit it (and succeed), I'll post my approach. Alberto |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 07:38 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 17:11 |
conjugate boundary condition | Daniel_Khazaei | OpenFOAM Programming & Development | 0 | December 31, 2013 13:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 17:44 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |