|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Mohammad Najafi
Join Date: Oct 2017
Posts: 11
Rep Power: 9 ![]() |
Hi
1.As I understand, p.correctBoundaryConditions(), updates boundary values after explicit update of p. But p is a volScalarField and it's not defined on the boundaries. So what would be the benefit of this function. 2. In the other hand when I try this I get error. Code:
surfaceScalarField P=fvc::interpolate(p); P.correctBoundaryConditions(); Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Mohammad Najafi
Join Date: Oct 2017
Posts: 11
Rep Power: 9 ![]() |
1.I found out that it difference is revealed when I call interpolate as code below:
Code:
forAll(p,pi) { p[pi]=1; i++; } Info<<endl<<"p beofre correct:"<<p<<endl; Info<<endl<<fvc::interpolate(p)<<endl; p.correctBoundaryConditions(); Info<<endl<<"p after correct:"<<p<<endl; Info<<endl<<fvc::interpolate(p)<<endl; |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Anonymous.
Join Date: Sep 2020
Posts: 35
Rep Power: 6 ![]() |
If we cant apply correctBoundaryConditions(); on surfaceScalarField, how do we apply it to correct boundary conditions for surfaceScarlarField at every timestep due to the update of certain variables during parallel simulation?
|
|
![]() |
![]() |
![]() |
![]() |
#4 | |
New Member
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 4 ![]() |
Quote:
Did you find answer to your questions about correcting boundary conditions of a surfaceScalarField using correctBoundaryConditions()? Please let me know. I've been struggling with a similar issue. Thanks, S |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 114
Rep Power: 6 ![]() |
||
![]() |
![]() |
![]() |
Tags |
correctboundaryconditions, geometricfield |
Thread Tools | Search this Thread |
Display Modes | |
|
|