|
[Sponsors] |
Modified VOF solver (Help needed with changes) |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6 ![]() |
Hey,
I'm new to programming in OpenFOAM and I need to compile a variation of the interFoam solver, with modifications to the property determination method and the interface curvature calculation part of the CSF model to smoothen it. I've attached an image with the changes I wish to make highlighted. I'm just not clear of where I'll have to go about making the changes. So any help in that regard will be extremely helpful.
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6 ![]() |
I went through the solver source code, and this is my understanding about the changes, and further questions on which files need to be modified.
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#4 | |
Member
Venkat Ganesh
Join Date: May 2020
Location: Cincinnati, Ohio
Posts: 49
Rep Power: 6 ![]() |
Quote:
I was able to update the expression for rho as well. rho is getting updated from alphaEqnSubCycle.H file. I missed it earlier as the expression had '==' operator which I got confused with the equality operator in C++, but openFOAM uses it as an assignment operator in this case. (Reference: == operator) Code:
rho == alpha1*rho1 + alpha2*rho2; |
||
![]() |
![]() |
![]() |
Tags |
alpha, curvature, surface tension, vof |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solver that combines VOF with DFM and manual | JonW | OpenFOAM Announcements from Other Sources | 0 | August 2, 2021 14:18 |
viscosity udf don't use correct temperature and strain rate | rezvani | Fluent UDF and Scheme Programming | 8 | May 27, 2021 05:40 |
error encountered when compiling modified solver | jawfi | OpenFOAM Programming & Development | 0 | September 16, 2017 03:22 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 00:01 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |