I want to see the implement of the function " convect ", how can I get the details.
The implementation is available in FreeFEM source code but why do you need to see the implementation?
to access the method? Check a potential bug?
Learn it, and design a high order scheme
Without further specifications, the DSL function convect refers to the class Convect in src/fflib/lgfem line 2082.
Thank you for your reply~
I don´t find this direction anywhere: src/fflib/lgfem line 2082. Could you please tell me more specifically where can I find it. I have the same purpose as @candy
I don´t find this direction anywhere: src/fflib/lgfem line 2082. Could you please tell me more specifically where can I find it. I have the same purpose as @candy
Hello.
I would like to learn more about the function too. Am I right to say this uses an explicit Euler method, together with a FEM interpolation?
Thank you!
Small correction, in case it matters for your scheme: convect in FreeFEM is the method of characteristics (semi-Lagrangian), not plain explicit Euler plus FEM interpolation. For each dof it traces the characteristic back over one time step to the departure point, then evaluates the previous u there by interpolation, which is the C/D matrix part. That makes it unconditionally stable in time but adds numerical diffusion. If you want higher order, that interpolation step is where to look. As for locating the class, the file/line from 2019 has almost certainly moved; grep for class Convect in the sources of whatever version you build.