Comments (13)
This is a good idea. I'll try to put it in soon, or you're welcome to submit a pull request.
from cfdof.
hi @oliveroxtoby I am nearly finished this implementation, however notice that in
CfdPreferences.py
, the functionloadSettings()
is actually never called, which is kind of weird. One would assume this is used to persist the changes (not working for this Feature Request yet, assume because of this).
It's not called by CfdOF but it is called by FreeCAD when the preferences page is loaded.
from cfdof.
@oliveroxtoby nice! as a follow-up, I dove deep into FEM recently. And, it has everything I mentioned above as well as "smarter than me" logic with even more options.
Maybe follow this Workbench?
The "Custom directory" option being the same as CfdOF's Properties View current option.
But note the other two dynamic ones. I especially like the "beside FCStd file" option.
from cfdof.
There's also something else... the FEM workbench also defaults to "search in known binary directories" for all the dependencies, instead of requiring their location.
This makes the FEM workbench work out of the box with CAE Linux - since everything is installed. For CfdOF, I have to go find each binary and specify them.
Just some suggestions to improve the the user's experience. :)
from cfdof.
hi @oliveroxtoby any idea what the call is to get the project base label
is? Is this accessible via the obj
passed to the CfdAnalysis.py class?
def makeCfdAnalysis(name):
""" Create a Cfd Analysis group object """
obj = FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroupPython", name)
CfdAnalysis(obj)
from cfdof.
hi @oliveroxtoby any idea what the call is to get the project base
label
is? Is this accessible via theobj
passed to the CfdAnalysis.py class?
FreeCAD.ActiveDocument.Label ?
from cfdof.
But note the other two dynamic ones. I especially like the "beside FCStd file" option.
@icojb25 just a note in case you end up implementing this aspect of it. CfdOF does currently store files in this location if the user enters a relative path in the analysis object properties - see CfdTools.getOutputPath(). So probably this code can be reused.
from cfdof.
There's also something else... the FEM workbench also defaults to "search in known binary directories" for all the dependencies, instead of requiring their location.
This makes the FEM workbench work out of the box with CAE Linux - since everything is installed. For CfdOF, I have to go find each binary and specify them.
@eduncan911 CfdOF does actually have default locations for the dependencies, which are searched if no location is given on the Preferences page. However I don't know what these are for CAE Linux, so if you could supply these we can simply add them to the defaults.
from cfdof.
But note the other two dynamic ones. I especially like the "beside FCStd file" option.
@icojb25 just a note in case you end up implementing this aspect of it. CfdOF does currently store files in this location if the user enters a relative path in the analysis object properties - see CfdTools.getOutputPath(). So probably this code can be reused.
Hi @oliveroxtoby i can chip away at it over the week. Do we want to add these options in the Preferences panel?
from cfdof.
Hi @oliveroxtoby i can chip away at it over the week. Do we want to add these options in the Preferences panel?
Thank you, that would be great.I don't think we need to have the distinction between custom directory and tmp directories (I think we can just have the custom directory defaulting to tmp directory as we do now), but adding an option in preferences like the 'Beside .FCStd file' one would be nice. And then also saving in a subdirectory with the name of the document label, as the first post alludes to.
from cfdof.
hi @oliveroxtoby
I am nearly finished this implementation, however notice that in CfdPreferences.py
, the function loadSettings()
is actually never called, which is kind of weird. One would assume this is used to persist the changes (not working for this Feature Request yet, assume because of this).
Can you confirm? I dont see this method called anywhere in the code ... yet it seems to be the persistence method that should be used.
from cfdof.
@eduncan911 @oliveroxtoby Take a look at this and see if it works as intended. Enjoy the long weekend.
from cfdof.
@eduncan911 @oliveroxtoby Take a look at this and see if it works as intended. Enjoy the long weekend.
Apologies for the delay. Im between projects, so will check as soon as the next one comes!
from cfdof.
Related Issues (20)
- Feature request: Solver for heat transfer HOT 3
- Performance issues with complex meshes HOT 1
- Bug reporting: No module named 'certifi' HOT 3
- Install Win10 CfdOF 1.24.8 OpenFoam v2212 HOT 2
- CfdOF not working with openfoam11 HOT 1
- Bug reporting HOT 4
- "Sticky" reportingfunction x/y axis scales HOT 2
- [Feature request] Support mpi hostfile for clustered setup HOT 11
- Add-on install not working HOT 2
- Eulerian multiphase HOT 9
- Cfdof/FreeCAD 0.21.2 Generates Incorrect Periodic B.C.'s HOT 4
- Support Material Update HOT 1
- Allrun script points to incorrect MESHDIR HOT 2
- Panel heading titles
- Fluid Properties - Compressible Checkbox HOT 1
- SnappyHexMesh Boundry Layer Inflation Expansion Ratio HOT 1
- Standard error output should not be used when detecting paraview version
- Behaviour of Mesh Button / Menu on second click HOT 1
- Errors with Running the Solver HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfdof.