|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ricardo Puente
Join Date: Nov 2020
Posts: 5
Rep Power: 6 ![]() |
Hi,
I want to impose periodicity on the gradient of a certain variable, but not on the actual value, which can be what ever it needs to be. But this happens in only one variable, the rest of variables are periodic in the usual sense. I thought about setting the patches as regular patches´in the boundary file, not cyclic, and then enforcing the periodicity via swak4foam as shown in the attached files. "Uper" shows the regular periodicity and "grade" shows the gradient periodicity. This does not run, giving an error of "Parser error for driver PatchValueExpressionDriver" complaining about Dw for the regular periodiciy. I´m sure that if that is fixed it will complain about the gradient periodicity, but step by step... In any case, even if this worked, I would only be able to impose periodicity in the surface normal gradient, and I want it in all components. Thus, i think I need to implement a new BC instead of using swak4foam. I started looking into cyclicFvPatch to try to use it as a baseline, but I don´t really understand what is going on there. Ive worked with other codes, but OpenFOAMs design is a bit opaque to me. Could anyone give some advice on how to do this? |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RANS shape optimization all gradients are zero | cfd-jg | SU2 Shape Design | 0 | April 24, 2024 10:52 |
Extract pressure gradient from periodic boundary conditions. | thijs1909 | FLUENT | 7 | April 18, 2018 10:40 |
Bug in fvc::grad() and periodic boundary condition | JBUNSW | OpenFOAM | 3 | November 15, 2012 04:09 |
pressure gradient of a 2D periodic flow problem | Honey | FLUENT | 0 | September 19, 2012 04:21 |
Calculation of pressure gradient in periodic boundary condition | ksaat | FLUENT | 7 | May 16, 2011 04:59 |