simulkade / jfvm.jl Goto Github PK
View Code? Open in Web Editor NEWA simple finite volume tool for Julia
License: Other
A simple finite volume tool for Julia
License: Other
I am trying to convert the Nonlinear PDE example (https://nbviewer.jupyter.org/github/simulkade/JFVM.jl/blob/master/examples/solving-nonlinear-pdes-with-fvm.ipynb) to a Cylindrical1D mesh. The left (r=0) boundary is the standard (a=1,b=0,c=0) while the right boundary is a Robin BC. It appears that the Robin BC is working, but the left boundary holds the value (acts like a Dirichlet boundary) instead of allowing phi to drop. Perhaps I'm missing something in the conversion? The script is attached here:
FV_polygon1Dradial.jl.zip
The lufact!
function does not work on 32 bit systems.
Run femtocleaner
Attempts to use reshapeCell
or reshapeInternalCell
result in an error of:
ERROR: LoadError: UndefVarError: full not defined
Stacktrace:
[1] reshapeCell(m::MeshStructure, phi::CellValue)
@ JFVM D:\Programs\Julia-1.6.1\.julia\packages\JFVM\v1vqd\src\JFVMtools.jl:330
my temporary (and quite poor) workaround to this is:
Ti = internalCells(T)
Ti = [Ti[1,1:end]';Ti;Ti[end,1:end]']
Ti = [Ti[1:end,1] Ti Ti[1:end,end]]
T = createCellVariable(m,Ti)
So that I may use the cellvariable T (which is a solution from solving a PDE) in functions that are dependant on T, but return errors when operating on the ghost values of T.
I will look into a better fix & branch it later this week.
Thanks.
In fliud flow, is this method still appropriate for curve path? That is to say , if the one-dimensional mesh is polyline, is the transient-diffusion still applicable? My purpose is studying the water pressure of the polyline/curve crack path,like the black simplified crack paths in the picture. I want to know whether I can treat the polyline as a straight line to solve the transient-diffusion problem?
Could you please help to solve it in Julia ?
I can do it in ansys fluent , but I want learn Julia.
oscillating flow through pipe (2D)
it is a transient compressible, viscous 2D flow problem. also, conventional heat transfer considers from the pipe wall.
it is a convention diffusion problem. at both ends, there are porous heat exchangers.
Thank you
There is a tiny bug in the constant source terms.
Some functions must be written for 3D spherical coordinate (r, \theta, \phi)
Python wrapper is available for SU2 (The Open-Source CFD Code).
Please provide Julia wrapper for SU2.
SU2 is a suite of open-source software tools written in C++ for the numerical solution of partial differential equations and performing PDE-constrained optimization.
There is no package for CFD in Julia. SU2 is good access for Julia.
could you forward it to the correct group to get more attention?
The given examples failed in Julia v1.5.2.
As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.
To transition to the new Pkg system using Project.toml
, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.
If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.
What is the significance of using dt step-by-step calculation in transient term calculation? Will using a one-step calculation result in significant errors (compared to step-by-step calculation) ?
Thanks a lot for your help !
It seems the "solvePDE" set of functions cause my terminal to crash when attempting to solve a PDE. The error I receive is:
The terminal process "D:\Programs\Julia-1.8.0\bin\julia.exe '--color=yes', '--startup-file=no', '--history-file=no', '--project=d:\Github\CRUD.jl', 'c:\Users\sa8416.vscode\extensions\julialang.language-julia-1.7.6\scripts\debugger\run_debugger.jl', '\.\pipe\vsc-jl-dbg-9aa81c39-1399-435d-9fb6-f07804f28e12', '\.\pipe\vsc-jl-cr-e272cddf-e589-4ef3-9716-a35a7693db3e'" terminated with exit code: 1.
Edit: It seems the issue lies in the matrix of coefficients 'M' being a sparse matrix, temporary fix is to convert it to a dense matrix:
x=(collect(M))\RHS
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.