https://linen.dev logo
I am looking for help with regards to adding an ex...
# programming
m
I am looking for help with regards to adding an explicit source term to my solver. I have the following equation:
Copy code
fvScalarMatrix hEqn
            (
                fvm::ddt(betav*rho, h)
            - (
                thermo.isotropic()
                ? fvm::laplacian(betav*thermo.alpha(), h, "laplacian(alpha,h)")
                : fvm::laplacian(betav*taniAlpha(), h, "laplacian(alpha,h)")
                )
            ==
             fvOptions(rho, h)
            - phaseChangeSolid.hSource()
            );
With my custom source term
Copy code
phaseChangeSolid.hSource()
that I have defined as
Copy code
tmp<fvScalarMatrix> hSource(fvm::Su(sourceCoeff, hsolid));
in my source code but I think I'm adding at as an implicit source instead of explicit and just really struggling to find relevant information online. Would anybody be able to give advice or point me in the right direction? Thanks in advance.