-
Notifications
You must be signed in to change notification settings - Fork 31
Do I need to add make folder compilation to the Linearviscousstress folder #12
Comments
Glad to hear you're making progress. Yes, you do need to compile the linear viscous stress model because of an added method that computes the Reynolds stress with the NN. This method takes in the velocity, rotation and strain tensors and then executes the forward pass of the neural network with the compiled reynoldsNet. However, I don't think you shouldn't need any special caffe2 libaries or anything for this to compile so you can use OpenFOAMs default make folder since reynolds net is already compiled. From there you will then compile the incompressible turbulence model library if I remember correctly and then you should be set to compile the simpleNNFoam model. |
Geneva, |
I would check to see of the library has been created in the Some additional information on linking libraries in OpenFOAM can be found here in section 3.2.2.2: |
Geneva, Thanks for your reply. Actually, I changed "files" in reynoldsNet "Make" folder. I changed FOAM_LIBBIN to FOAM_USER_LIBBIN. And libreynoldsnet.so has been created in user folder. It seemed that only by including the library with -L wxplicitly, could the compilation be succeeded. Now I have solved this problem. But there's a warning "no return statement in function returning non-void [-Wreturn-type]" when compiling incompressible.lib. This resulted in fail in simpleNN compiltion. This error occured in imcompressible.H. line 140. |
Dear Geneva,
I have succeeded in compiling reynoldsNet library. Now, according to your tutorial, if I want to compile simpleNN solver, I should first compile linearViscousStress. But I noticed that there lacked a "Make" folder in "linearViscousStress". Do I need to add "make" folder to it?
The text was updated successfully, but these errors were encountered: