itascaconsulting / pfc3d_openfoam Goto Github PK
View Code? Open in Web Editor NEWUsing PFC3D with OpenFOAM for fluid-particle interaction modeling.
Using PFC3D with OpenFOAM for fluid-particle interaction modeling.
There is no problem before running 'python setup.py install --user' as follows:
~/src/PFC3D_OpenFOAM/pyDemFoam$ python setup.py install --user
building version 2016.06.09
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /home/zhouyu/.local/lib/python2.7/site-packages/pyDemFoam-2016.06.09.egg-info
Writing /home/zhouyu/.local/lib/python2.7/site-packages/pyDemFoam-2016.06.09.egg-info
However, when running 'python -c "import pyDemFoam; print pyDemFoam.version"', it replies that:
Traceback (most recent call last):
File "", line 1, in
File "/home/zhouyu/.local/lib/python2.7/site-packages/pyDemFoam/init.py", line 3, in
from _pyDemFoam import pyDemIcoFoam, pyDemSimpleFoam
ImportError: /home/zhouyu/.local/lib/python2.7/site-packages/_pyDemFoam.so: undefined symbol: _ZN4Foam9UIPstream4readERi
Looking forward to your helping very much.
Best regards
Yu
What is the reason for this problem? It is because of the file "itasca-2016.06.09"“ itasca.py "Is there an error in the content of? I really hope to get a reply.
opfc@opfc-virtual-machine:~c/PFC3D_OpenFOAM/dropTest1$ python cfd_dropTest1.py
/---------------------------------------------------------------------------
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: v3.0+ |
| \ / A nd | Web: www.OpenFOAM.com |
| \/ M anipulation | |
*---------------------------------------------------------------------------*/
Build : v3.0+-e941ee6c15e9
Exec : demIcoFoam
Date : Mar 11 2021
Time : 17:41:39
Host : "opfc-virtual-machine"
PID : 4536
Case : /home/opfcc/PFC3D_OpenFOAM/dropTest1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
creating demIcoFoam object
PISO: Operating solver in PISO mode
cleaning up socket
Traceback (most recent call last):
File "cfd_dropTest1.py", line 33, in
print "send finished"
File "/home/opfc/.localb/python2.7/site-packages/itasca/itasca.py", line 535, in exit
self.close()
File "/home/opfc/.localb/python2.7/site-packages/itasca/itasca.py", line 527, in close
self.socket.shutdown(socket.SHUT_RDWR)
File "/usrb/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 107] Transport endpoint is not connected
cleaning up demIcoFoam
cleaning up demBaseFoam
When I ran the model using the demicofoam solver, I found that the pressure gradient of the fluid was always calculated to be zero.Has anyone encountered the same problem?
Dear Furtney
I met a problem when I tested the code "pfc3d700_console call pfc_dropTest1.py". I listed the error report as below.
I don't how to handle it. So I turn to you. Hope to hear from you.
Best wishes.
Hansenn
Traceback (most recent call last):
File "", line 6, in
AttributeError: module 'linecache' has no attribute '_ipython_cache'
pfc3d>python-reset-state on
Hello,
While building pyDemFoam all the commands go well but at the end to test the working of pyDemFoam the command "python -c "import pyDemFoam; print(pyDemFoam.version)" gives following error
"Traceback (most recent call last):
File "", line 1, in
File "/home/mahwish/.local/lib/python2.7/site-packages/pyDemFoam/init.py", line 3, in
from _pyDemFoam import pyDemIcoFoam
ImportError: /home/mahwish/.local/lib/python2.7/site-packages/_pyDemFoam.so: undefined symbol: _ZN4Foam13UIPstreamBase4readERl
Kindly guide me to resolve the error
Can we couple the PFC3D 7.0 with COMSOL v6.1?
I heard that we can use MATLAB in this case.
is there any code or example in this case?
An error occurred during the final step of verifying the compilation feasibility.
python -c "import pyDemFoam; print(pyDemFoam.version)"
Traceback (most recent call last):
File "", line 1, in
File "/home/dyfluid/.local/lib/python3.8/site-packages/pyDemFoam/init.py", line 3, in
from _pyDemFoam import pyDemIcoFoam
ImportError: /home/dyfluid/.local/lib/python3.8/site-packages/_pyDemFoam.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN4Foam11VectorSpaceINS_6VectorIlEElLh3EE4zeroE
Is there a version of OpenFOAM 7 solvers available?
Hello, thank you very much for providing the OpenFOAM--PFC coupling package. I encountered a problem in the process of using it.
The error message is: [Errno 111] Connection refused
looking forward to your reply!
When I build the pydemfoam, the error is as follows:
demSimpleFoam.C:73:20: error: passing ‘const Foam::fvMatrix<Foam::Vector >’ as ‘this’ argument discards qualifiers [-fpermissive]
UEqn().relax();
^
In file included from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMatrix.H:1061:0,
from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/ddtScheme.C:29,
from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/ddtScheme.H:342,
from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvcDdt.C:28,
from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvcDdt.H:205,
from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvc.H:44,
from /home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvCFD.H:8,
from demBaseFoam.H:2,
from demSimpleFoam.H:1,
from demSimpleFoam.C:28:
/home/zy/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude/fvMatrix.C:674:6: note: in call to ‘void Foam::fvMatrix::relax() [with Type = Foam::Vector]’
void Foam::fvMatrix::relax()
^~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
And my python-dev is the latest version. So how can I solve this problem?
Thanks a lot.
Can we couple the PFC3D 5.0 with OpenFOAM v2112?
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.