-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed code changes for Remote Processing #76
base: master
Are you sure you want to change the base?
Conversation
Initial add for CfdOF remote processing
Uploaded to wrong dir
Uploaded to wrong dir
Uploaded to wrong dir
Uploaded to wrong dir
Uploaded to wrong dir
Uploaded to wrong dir
Uploaded to wrong dir
modified: CfdOF/CfdRemotePreferencePage.py modified: CfdOF/Mesh/CfdMeshTools.py modified: CfdOF/Mesh/TaskPanelCfdMesh.py modified: Gui/CfdRemotePreferencePage.ui
modified: CfdOF/CfdRemotePreferencePage.py modified: CfdOF/CfdTools.py modified: CfdOF/Mesh/CfdMeshTools.py modified: CfdOF/Mesh/TaskPanelCfdMesh.py modified: CfdOF/Solve/CfdCaseWriterFoam.py modified: CfdOF/Solve/TaskPanelCfdSolverControl.py modified: Gui/TaskPanelCfdMesh.ui
Please add mention in the OP to #70 |
modified: CfdOF/CfdTools.py modified: CfdOF/Solve/CfdCaseWriterFoam.py
modified: CfdOF/Mesh/TaskPanelCfdMesh.py modified: CfdOF/Solve/CfdCaseWriterFoam.py modified: CfdOF/Solve/TaskPanelCfdSolverControl.py
@linuxguy123 I gave it a quick whirl and at first glance this looks fantastic! A couple of initial wrinkles to report:
|
@linuxguy123 just checking to see if you saw oliver's feedback above ? |
Sorry, I've been busy. I'll have a look in the near future. |
Thanks ! I was beginning to think that only I would find it useful. I've been using it daily and I absolutely love it.
I encourage feedback and discussion.
Interesting. I should start with an empty instance and test that. Thanks for reporting this.
You are correct, the bashrc file isn't sourced on the remote machine. I mentioned in the user guide that remote processing assumes that OpenFOAM runs from the command line in the remote user's shell. What this means is that the user needs to add the OpenFOAM bashrc file to their remote .bashrc file. I did this because executing stuff remotely (such as sourcing the OpenFOAM bashrc file) in an ssh session is sometimes non trivial. Knowing what I know now, I could probably source the OpenFAOM bashrc file when opening a shell, but it is way simpler if the user just adds it to the remote user's .bashrc file. The other thing remote processing doesn't do is set up OpenFOAM on the remote computer. It is up to the user to do this manually and as such I didn't think that adding the OpenFOAM bashrc file to the remote .bashrc file would be a major inconvenience. |
I'm not happy with the code quality. As it sits now the code is functional but messy. Some of this is on purpose because I didn't want to mess with existing code thus I added code instead of integrating it into existing code. This caused duplication and also made things necessarily messy versus if RP was integrated into the existing structure. My work stands as a decent functional prototype of what RP could be. If people think it is a worthwhile addition to CfdOF then we have 2 options:
I sunk a lot of time into this project and I'm happy I did. But I have to carefully allocate my time going forward as I am behind on my real project. It might be several months until I could do a proper rewrite by myself. I also think that multiple developers are a good thing. I'd love to have someone else dig into my code and add their tweaks to it. My needs for remote processing are satisfied for the time being with CfdOF-RP as it is. I look forward to direction from the community to decide our next steps. |
I definitely think it would be a worthwhile addition.
Personally I'm not overly worried about a bit of messiness in the code but would like to make sure the functionality is fairly polished.
I would volunteer to dig in and file off the rough edges myself, but unfortunately my time is also very limited at the moment and I can't really see that happening. Anyway, there is no hurry and you are welcome to come back to this at leisure when time permits. |
OK. Good to know. Test away then. I await feedback on things that needs polish.
No promises but at some point in the future I may allocate an employee's time to working on CfdOF and FreeCAD in general.
OK. |
I just hope this PR doesn't rot in the queue. 🤞 |
Users can use CfdOF-RP right now via settings in Tools->Addon Manager Options I have pulled and will pull the recent changes from CfdOF into CfdOF-RP so it is current with Master. It could be merged back into CfdOF any time, but I really want people to get some time on it before we do that. I have every intention of merging back into CfdOF. While I forked CfdOF to do this work, it is not my intention to fork CfdOF. |
@oliveroxtoby perhaps this PR can be merged in to a experimental branch and then testers can use the FreeCAD Addon Manager feature to toggle on the experimental branch ? |
@luzpaz done, and merged latest master in branch linuxguy-remote-processing. Feel free to communicate this as you see fit. |
Hi @linuxguy123, just wondering if you'd be willing to look at this issue? |
No description provided.