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

Periodic gradient BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2025, 12:15
Default Periodic gradient BC
  #1
New Member
 
Ricardo Puente
Join Date: Nov 2020
Posts: 5
Rep Power: 6
rpuenter is on a distinguished road
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?
Attached Images
File Type: png Uper.png (4.6 KB, 6 views)
File Type: png grade.png (10.2 KB, 6 views)
rpuenter is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 12:04.