Giter VIP home page Giter VIP logo

pfc3d_openfoam's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pfc3d_openfoam's Issues

cfdarray not working

I tried to run the codes.
in PFC everything was ok but once I executed cfd_dropTest1.py, I saw "Python error: NameError("name 'ca' is not defined",)"
what is the reason. ca was defined already by "from itasca import cfdarray as ca"

Screenshot 2023-01-16 175324

There are errors after building pyDemFoam.

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

A question about "running coupled problems"

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

Problem of Pressure Gradient

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?

A problem occured when I ran the code "pfc3d700_console call pfc_dropTest1.py"

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

How to resolve the Error in building pyDemFoam

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

PFC-CFD

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?

OpenFOAM 7 cannot be compiled successfully

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?

Error

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!

how to solve this problem in the process of building the pyDemFoam?

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.

Body force

Hi,
I am just wondering why in sending body force data, yiu used:
((ca.drag().T/element_volume).T/fluid_density)
I didn't get the reason of "fluid_density"

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.