|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 ![]() |
I have a bit confusing part about laplacian operator of openfoam, so I am writing the thread to ask some question
https://www.openfoam.com/documentati...laplacian.html When we look at this guide, it says fvm::laplacian can be used as not only laplacian operator, but as combination of divergence and gradient. But since they mentioned diffusion coefficient as example, I initially thought it is actually meaningless, since it is meaningless to put constant coefficient before or after the gradient operator and has no difference. However, I was trying to modify some scalartransport code, and I found that they use fvm::laplacian(rho*D(), s_) and rho is definitely non-constant operator. In this case, is it used as div(rho*D*grad(s))or just laplacian(rho*D*s)? Can anybody give exact description of how fvm:: functions are used? |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 ![]() |
What does that imply?
I know that when used with single variable as input, fvm::laplacian will be used as pure laplacian operator. Are you trying to say about this functionality? |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 792
Rep Power: 14 ![]() |
fvm::laplacian is defined in fvmLaplacian.C (https://cpp.openfoam.org/v8/fvmLaplacian_8C_source.html) and like many OpenFOAM functions is overloaded, so can be called in many different ways. Regardless, all of them evaluate the quantity
![]() ![]() Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Song Young Ik
Join Date: Apr 2022
Location: South Korea
Posts: 59
Rep Power: 4 ![]() |
Oh, I got it now! Thanks for the reply
I was curious about how they actually work, since I only knew that they do something about solving PDE. Now I found that it involves with fvm namespace implicitly, while fvc does it explicitly. Thanks again. |
|
![]() |
![]() |
![]() |
Tags |
divergence, fvm, gradient, laplacian, scalartransport |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CPUs vs GPUs for CFD? | hami11 | Hardware | 22 | July 23, 2024 16:59 |
Large memory usage for steady simulation | Wenqiang | SU2 | 2 | May 15, 2020 14:40 |
[ANSYS Meshing] is my memory usage normal? | Renold | ANSYS Meshing & Geometry | 2 | April 9, 2019 15:09 |
New workstation for different usage scenarios - CPU and RAM | natem | Hardware | 6 | August 7, 2013 03:47 |
OpenFOAM Solver/BC usage description | murrayjc | OpenFOAM | 3 | August 25, 2009 05:48 |