I used the file at attachment for installing oofem 2.3 before. Now I tried to install 2.5 version with same method but just change the 2.3 with 2.5 in the installation file. Inside this file, there is some modification source code part you can see in the file. But when I installed 2.5 version, It always shows:
-------------------------------------------------------------------------
$ bash downloadAndInstall
+ echo Checking prerequisites ...
Checking prerequisites ...
+ for CMD in wget unzip git svn cmake tar
+ hash wget
+ for CMD in wget unzip git svn cmake tar
+ hash unzip
+ for CMD in wget unzip git svn cmake tar
+ hash git
+ for CMD in wget unzip git svn cmake tar
+ hash svn
+ for CMD in wget unzip git svn cmake tar
+ hash cmake
+ for CMD in wget unzip git svn cmake tar
+ hash tar
+ '[' -d /home/kun/femdem/include ']'
+ true
+ OOFEMTMP=/tmp/oofem-2.5
+ rm -rf /tmp/oofem-2.5 /tmp/oofem-2.5.zip /home/kun/femdem/oofem
+ wget 'http://www.oofem.org/cgi-bin/OOFEM/down … em-2.5.zip' -O /tmp/oofem-2.5.zip
--2018-03-20 19:26:17-- http://www.oofem.org/cgi-bin/OOFEM/down … em-2.5.zip
正在解析主机 www.oofem.org (www.oofem.org)... 147.32.130.71
正在连接 www.oofem.org (www.oofem.org)|147.32.130.71|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:http://www.oofem.org/download/oofem-2.5.zip [跟随至新的 URL]
--2018-03-20 19:26:23-- http://www.oofem.org/download/oofem-2.5.zip
再次使用存在的到 www.oofem.org:80 的连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 14249792 (14M) [application/zip]
正在保存至: “/tmp/oofem-2.5.zip”
/tmp/oofem-2.5.zip 100%[===================>] 13.59M 2.57MB/s in 5.8s
2018-03-20 19:26:29 (2.33 MB/s) - 已保存 “/tmp/oofem-2.5.zip” [14249792/14249792])
+ cd /tmp
+ unzip -q /tmp/oofem-2.5.zip
replace oofem-2.5/doc/elementlibmanual/elementlibmanual.xref? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
+ cd /tmp/oofem-2.5
+ git apply
error: 打补丁失败:bindings/python/oofemlib.cpp:699
error: bindings/python/oofemlib.cpp:补丁未应用
error: 打补丁失败:src/oofemlib/load.h:165
error: src/oofemlib/load.h:补丁未应用
error: src/sm/nldeidynamic.C:没有那个文件或目录
--------------------------------------------------------------
And If I delete the
# modifiy the source code
git apply <<EOF ............>> , and I tried to run the simulation(which I can run before with oofem 2.3 ),
I got:
---------------------------
kun@kun-System-Product-Name:~/dem-fem-coupling/try/1_try1_load5$ sh example1.sh /home/kun/femdem/yade/install/lib/x86_64-linux-gnu/yade/py/yade/system.py:9: RuntimeWarning: to-Python converter for std::vector<int, std::allocator<int> > already registered; second conversion method ignored.
from yade._customConverters import *
/home/kun/femdem/yade/install/lib/x86_64-linux-gnu/yade/py/yade/system.py:9: RuntimeWarning: to-Python converter for std::vector<double, std::allocator<double> > already registered; second conversion method ignored.
from yade._customConverters import *
deltaT reduced to 4.960161e-05, Tmin is 1.558280e-04
Solving [Step number 0, Time 1.000000e-08]
Traceback (most recent call last):
File "example1.py", line 94, in <module>
coupler = FemDemSurfaceCoupler(fem,dem)
File "example1.py", line 59, in __init__
self.dspl = fem.giveField(mupif.field.FieldID.FID_Displacement, None)
File "/home/kun/femdem/include/mupif/api/oofem/oofem_interface.py", line 175, in giveField
self.updateField(f,tstep)
File "/home/kun/femdem/include/mupif/api/oofem/oofem_interface.py", line 206, in updateField
dman.giveUnknownVector(dl, mask, liboofem.ValueModeType.VM_Total, self.problem.giveCurrentStep())
Boost.Python.ArgumentError: Python argument types in
DofManager.giveUnknownVector(DofManager, FloatArray, IntArray, ValueModeType, TimeStep)
did not match C++ signature:
giveUnknownVector(oofem::DofManager {lvalue}, oofem::FloatArray {lvalue}, oofem::IntArray, oofem::ValueModeType, oofem::TimeStep*, bool)
example1.sh: 24: example1.sh: pvbatch: not found
---------------------------------------------
nitramkaroh wrote:As I wrote you, nldeidynamic is an explicit solver, which calculates the critical time step and change deltaT to quite a small number. Therefore, you need to do many steps to see a movement. Other possibility is to switch an implicit solver where you can do bigger steps.
What is the problem to do the coupling with DEM in a newer version?
Post's attachmentsdownloadAndInstall 4.66 kb, 2 downloads since 2018-03-21
You don't have the permssions to download the attachments of this post.