Problem with operator fvm::laplacian
1 Attachment(s)
Dear all
I'm trying to perform a proof of concept by solving a Poisson equation. This part is purely ''mathematical'' but because if the computation works I will add it to another OF solver. The mathematical part inside the code is as follows: Code:
scalar vVoid = 0.1; Code:
Compiling enabled on 8 cores I know for certain that the problem arises when computing fvm::laplacian, because the types of the fields is not compatible with the operator. I found a really old discussion that deals with the same problem, but unfortunately I don't understand how can I solve it in my case (original question https://www.cfd-online.com/Forums/op...tml#post467411, answer https://www.cfd-online.com/Forums/op...tml#post468691) The mathematical problem I'm trying to solve is in the attached file: Does anyone knows how to solve it? My gut tells me I'm missing some fundamental stuff, but I can not see it. Thanks you in advance |
Hi Pablo,
Have you take a look at solidFoam solver? https://www.openfoam.com/documentati...1d4e7b6b2.html Laplacian term in anisotropic case will be similar to what you want. https://www.openfoam.com/documentati...8H_source.html I guess you need a volSymmTensorField. https://www.openfoam.com/documentati...ce.html#l00011 Good luck! |
Run scalarTransportFoam with
Code:
ddtSchemes |
Quote:
Because scalarTransportFoam uses a velocity field that inside the solver is considered by means of the phi field, but my fields have nothing to do with the velocity or the fluxes... just plain ''mathematical'' equations. Nonetheless, thanks for the information! |
Quote:
|
|
Hi Pablo,
As you can see the equation by Voulet, Coh will be a volSymmTensorField instead of a volVectorField. A Laplacian term in solidFoam with anisotropic setting uses volSymmTensorField. |
All times are GMT -4. The time now is 09:33. |