you could try to implement it implicitly
fvc::laplacian(delta*F,Psat) = fvc::div( delta*F*grad(Psat) ) volVectorField dps = delta * fvc::grad(Psat); surfaceScalarField dpsf = fvc::interpolate(dps) & mesh.Sf(); then you can view the dps field as a 'convective' change of F due to the Psat gradient and rewrite it like this fvc::laplacian(delta*F,Psat) = fvm::div(dpsf, F) ...should work |
Hi
That's a pitty. But the code of niklas seems to be promissing. Ricardo, I didn't get your approach in total. Could you explain it in a little more detail? Especially the part of the lduAddressing. Regards Fabian |
Quote:
Quote:
a part of code ... Code:
float tdelta = 1.0; I tried next approach, rewrite partial pressure by gradient of temperature, it seems, that gives similar values like lduaddressing script :) I don't know where is problem, I have to check all functions, material parameters and other properties again,... thanks to all for support and advices Richard |
you REALLY need to be more specific when you say 'it doesnt work'.
|
I was wrong :o, It works, but obtained values ...
dimensions [0 0 0 0 0 0 0]; internalField nonuniform List<scalar> 4000 ( -1.35814e-10 4.58031e-11 4.58031e-11 4.58031e-11 4.5803e-11 4.58031e-11 4.58031e-11 4.58031e-11 -1.82592e-10 -1.77054e-12 -2.23032e-11 So it seems (two scheme unstable), that a problem could be somewhere else, Is right using parameters (lambda), stored as volScalaField and (ununiform field) calculated in each step equation by this way? (fvm::laplacian(lambda,T)) Is it interpreted correctly to scheme or is used average values? Thanks Richard |
Quote:
I face similar problem whereby I need to convert Code:
fvm::laplacian((alpha*rho*DkEff(F1)), k_) Code:
fvm::laplacian((alpha*DkEff(F1)), rho*k_) Code:
fvm::laplacian((alpha*rho*DkEff(F1)), k_) + fvc::laplacian((alpha*k_*DkEff(F1)), rho) Code:
fvc::laplacian((alpha*k_*DkEff(F1)), rho) Another error is "note: template argument deduction/substitution failed" Any idea how to solver it? Must been trying to solve it for a month. Thanks |
All times are GMT -4. The time now is 08:22. |