CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Boundary condition derived from cyclicFvPatchScalarField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2016, 07:16
Default Boundary condition derived from cyclicFvPatchScalarField
  #1
New Member
 
Join Date: Dec 2015
Posts: 24
Rep Power: 10
metalfox is on a distinguished road
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);
}
but I've seen no effect.

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
{}
for the BC to work.
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;
    }
I believe this can be done directly in updateInterfaceMatrix.

Can somebody provide an example of updateInterfaceMatrix overriding?

Thanks so much
metalfox is offline   Reply With Quote

Old   September 26, 2016, 03:37
Default
  #2
New Member
 
Karl Lindqvist
Join Date: Jul 2012
Posts: 21
Rep Power: 13
karlli is on a distinguished road
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
karlli is offline   Reply With Quote

Old   September 27, 2016, 03:29
Default
  #3
New Member
 
Join Date: Dec 2015
Posts: 24
Rep Power: 10
metalfox is on a distinguished road
Quote:
Did you find a solution to your problem with the cyclic boundary condition?
No. I'm sorry. I ended up abandoning this idea.

If I revisit it (and succeed), I'll post my approach.

Alberto
metalfox is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:45.