|
[Sponsors] |
May 2, 2018, 20:22 |
correctBoundaryConditions
|
#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 |
|
May 2, 2018, 21:11 |
|
#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; |
|
February 20, 2022, 21:02 |
Correct boundary condition
|
#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?
|
|
September 21, 2022, 06:11 |
|
#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 |
||
September 21, 2022, 16:20 |
|
#5 |
Senior Member
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5 |
||
Tags |
correctboundaryconditions, geometricfield |
Thread Tools | Search this Thread |
Display Modes | |
|
|