Computational Fluid Dynamics pre- and post-processing python modules.
-- Under construction --
-
Tutorials
CFD pre- and post-processing python modules
Home Page: https://onera.github.io/Cassiopee/
License: GNU Lesser General Public License v3.0
Computational Fluid Dynamics pre- and post-processing python modules.
-- Under construction --
Tutorials
Hi,
I'm experiencing an issue, and I'm not sure where to post this question, so I'm trying here in the GitHub issues.
We are running simulations with Cassiopee, and I need to export snapshots to open them in ParaView for visualization, such as creating videos.
Issue 1: The contour option in ParaView is not available after opening the CGNS file. Is this a known issue? Are there additional steps or information we need to add to the file to support contour visualization?
Issue 2: How can I open a series of files and add time stamps to them in ParaView?
I am attempting the following, but ParaView does not recognize the time stamps:
This is what I am doing: initialize the time nodes on the tree...
import Converter.PyTree as C
import Converter.Internal as Int
t = C.convertFile2PyTree(input_file)
t = Int.renameNode(t, input_file, "Base")
# https://cgns.github.io/CGNS_docs_current/sids/timedep.html
n = Int.newBaseIterativeData(name="BaseIterativeData", nsteps=1, itype="IterationValues", parent=t)
Int.newDataArray("TimeValues", value=[0.0], parent=n)
and then upon runtime:
def write_snapshot(file_number: int, t: Any, mpi: bool, timestamp: float = 0.0, iteration: int = 0, restart_vars: List[str] = None):
fname = f"snapshot{file_number:06d}.cgns" if file_number != 0 else "initial_condition.cgns"
t_export_disk = extract_vars(t, restart_vars) if restart_vars else t
print0(f'Writing file: {fname} at time: {timestamp:.6f}')
BaseIterativeData = Int.getNodeFromName(t, "BaseIterativeData")
IterationValues = Int.getNodeFromName(BaseIterativeData, "IterationValues")
TimeValues = Int.getNodeFromName(BaseIterativeData, "TimeValues")
Int.setValue(node=IterationValues, value=iteration)
Int.setValue(node=TimeValues, value=round(timestamp, 8))
if mpi:
Cmpi.convertPyTree2File(t_export_disk, fname)
else:
C.convertPyTree2File(t_export_disk, fname)
Any assistance or guidance on these issues would be greatly appreciated.
Thank you!
Update non-regression tests for the IBC wire mesh model (WMM)
Add missing or update non-regression testing:
Add non-regression test for moving IBMs
Add a non-regression test for the wind tunnel outlet pressure control capabilities.
when loading sh_Cassiopee_local it hangs at
pyversion="python"`python -c "import sys; print('.'.join(str(n) for n in sys.version_info[:2]))"`
and I get the error 'bash: export: python: not a function'
I propose the follow bug fix that solves this issues:
if [ "$PYTHONEXE" = "python3" ]; then
pythonTmp() { python3 "$@"; }
export -f pythonTmp
fi
instead of
if [ "$PYTHONEXE" = "python3" ]; then
python() { python3 "$@"; }
export -f python
fi
I tried and it works for loading the sourcing the sh_Cassiopee_local file.
Hello there,
I would like to change X_IBM.prepareIBMDataPara() to X_IBM.prepareIBMData() in Connector.IBM, add an alias prepareIBMDataPara = prepareIBMData and keep the old sequential X_IBM.prepareIBMData() as X_IBM.prepareIBMData_legacy(). I would like to do the same operation for G_IBM.generateIBMMeshPara() in Generator.IBM !
In the same spirit, I would like to create (and document) a postIBM main function in Post.IBM that would encapsulate several macro functions, such as _computeSkinVariables, computeAerodynamicLoads, and computeAerodynamicCoefficients.
a+
Bonjour,
Je trouve que cela serait plus pratique d'avoir "stdout" comme argument par défaut de Cmpi.trace pour fileName.
Est-ce que ca embete quelqu'un?
a+
Hello,
Given that Cassiopee is now 100% open-source and on github, therefore accessible to to whomever from wherever, I have a question on the language of new comments in the code. Should be stick with some in English and some in French or should we try to have all new comments be in English and thereby be consistent with the tutorials and user manual?
Cheers
Add non-regression test for the automatic rectilinear mesh
Hello,
The dimension of the Base
nodes CARTESIAN_NEARBODY and CARTESIAN_OFFBODY differ in i4 and i8.
The case dimension is set to be dimPb = 2
.
In i4, I get: [3, 3]
In i8, I get: [2, 3]
It may have something to do with the function Generator.IBM.generateIBMMeshPara.
Thanks,
Vincent
Hi
when compiling Cassiopee with I8/R8, some data are written as I8/R8 while the CGNS standard imposes I4/R4:
for example.
Thx
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.