Skip to content

Instantly share code, notes, and snippets.

@raybsmith
raybsmith / termOut.txt
Created April 29, 2016 21:52
dae Tools pySuperLU error
*******************************************************************************
Build the project: LA_SuperLU
*******************************************************************************
[*] Configuring the project with (-j1, CONFIG+=shellSuperLU)...
qmake-qt4 -makefile LA_SuperLU.pro -r CONFIG+=release CONFIG+=silent CONFIG+=shellCompile customPython=/usr/bin/python3.5 -spec linux-g++ CONFIG+=shellSuperLU
Project MESSAGE: If python major is 3; otherwise the suffix is empty.
Project MESSAGE: SuperLU
[*] Cleaning the project...
@raybsmith
raybsmith / termOutput.txt
Created April 29, 2016 19:59
dae tools deal.ii error
----------------------------------------------------------------------
Libraries have been installed in:
/home/raymond/builds/mine_python-daetools-svn/20160429/src/trunk/nlopt/build/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
@raybsmith
raybsmith / gist:46a8a797798a2e38b2b4
Created August 19, 2015 16:11
daetools build error 20150819 01
[*] Building deal.II...
Scanning dependencies of target report_features
Scanning dependencies of target expand_instantiations
Scanning dependencies of target obj_base.release
Scanning dependencies of target obj_functionparser.release
Scanning dependencies of target make_dependencies
[ 0%] Building CXX object cmake/scripts/CMakeFiles/expand_instantiations.dir/expand_instantiations.cc.o
[ 0%] Building CXX object bundled/functionparser/CMakeFiles/obj_functionparser.release.dir/fparser.cc.o
[ 0%] Building CXX object cmake/scripts/CMakeFiles/make_dependencies.dir/make_dependencies.cc.o
@raybsmith
raybsmith / gist:34d49404d0117ffd74ff
Last active April 29, 2016 13:25
FiPy electrolyte, transient
import fipy as fp
Lx = 1.
nx = 1500
dx = Lx/nx
mesh = fp.Grid1D(nx=nx, dx=dx)
phi = fp.CellVariable(name="elec. potential", mesh=mesh, value=0.,
hasOld=True)
c_m = fp.CellVariable(name="conc.", mesh=mesh, value=1.0, hasOld=True)
import fipy as fp
Lx1 = 2e-2
Lx2 = 2e-2
Lx3 = 2e-2
Ly = 3e-3
Lx = Lx1 + Lx2 + Lx3
nx = 20
ny = 10
dx = Lx/nx
@raybsmith
raybsmith / gist:6e724e6f1ecc98f9303b
Last active August 29, 2015 14:10
FiPy quasi-neutral 1D electrolyte
import fipy as fp
Lx = 1.
nx = 1000
dx = Lx/nx
mesh = fp.Grid1D(nx=nx, dx=dx)
phi = fp.CellVariable(name="elec. potential", mesh=mesh, value=0.)
c_m = fp.CellVariable(name="conc.", mesh=mesh, value=1.0)
#V = -6e-1
@raybsmith
raybsmith / gist:4b89f247cf1f056043fa
Created October 29, 2014 01:58
Check analytical solution for FiPy Robin BC example
c, P, D, r, C1, C2 = var('c P D r C1 C2')
# Characteristic equation to solve ODE
f1(r) = r**2 - P*r- D
# Solution for roots
print solve(f1(r) == 0, r)
# (answer)
r1 = 0.5*(P - sqrt(P^2 + 4*D))
r2 = 0.5*(P + sqrt(P^2 + 4*D))
# Function and first derivative
csol(x, C1, C2) = C1*exp(r1*x) + C2*exp(r2*x)
@raybsmith
raybsmith / gist:4447571dbf01d519b0f4
Created June 10, 2014 17:04
pyTrilinos linking
/daetools-package/daetools/solvers/Linux_x86_64_py26$ ldd pyTrilinos.so
linux-vdso.so.1 => (0x00007fff8bdff000)
libboost_python-daetools-py26.so.1.52.0 => /home/smithrb/builds/daetools-svn518/usr/lib64/libboost_python-daetools-py26.so.1.52.0 (0x00007fd4cd619000)
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007fd4cd14a000)
libboost_system-daetools-py26.so.1.52.0 => /home/smithrb/builds/daetools-svn518/usr/lib64/libboost_system-daetools-py26.so.1.52.0 (0x00007fd4ccf46000)
libboost_thread-daetools-py26.so.1.52.0 => /home/smithrb/builds/daetools-svn518/usr/lib64/libboost_thread-daetools-py26.so.1.52.0 (0x00007fd4ccd25000)
libboost_filesystem-daetools-py26.so.1.52.0 => /home/smithrb/builds/daetools-svn518/usr/lib64/libboost_filesystem-daetools-py26.so.1.52.0 (0x00007fd4ccb0f000)
librt.so.1 => /lib/librt.so.1 (0x00007fd4cc906000)
libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00007fd4cc61a000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd4cc3fe000)
[*] Building deal.II...
...
Scanning dependencies of target obj_dofs.release
[ 70%] Building CXX object source/dofs/CMakeFiles/obj_dofs.release.dir/block_info.cc.o
[ 70%] Building CXX object source/numerics/CMakeFiles/obj_numerics.release.dir/data_postprocessor.cc.o
[ 70%] Building CXX object source/fe/CMakeFiles/obj_fe.release.dir/fe_bdm.cc.o
[ 71%] Building CXX object source/numerics/CMakeFiles/obj_numerics.release.dir/derivative_approximation.cc.o
[ 71%] Building CXX object source/dofs/CMakeFiles/obj_dofs.release.dir/dof_accessor.cc.o
[*] Building deal.II...
Scanning dependencies of target obj_fe.release
[ 71%] Building CXX object source/fe/CMakeFiles/obj_fe.release.dir/block_mask.cc.o
[ 71%] Building CXX object source/fe/CMakeFiles/obj_fe.release.dir/component_mask.cc.o
[ 71%] Building CXX object source/fe/CMakeFiles/obj_fe.release.dir/fe_abf.cc.o
[ 71%] Building CXX object source/numerics/CMakeFiles/obj_numerics.release.dir/dof_output_operator.cc.o
[ 71%] Building CXX object source/numerics/CMakeFiles/obj_numerics.release.dir/error_estimator.cc.o
[ 71%] Building CXX object source/fe/CMakeFiles/obj_fe.release.dir/fe_bdm.cc.o
[ 71%] Building CXX object source/numerics/CMakeFiles/obj_numerics.release.dir/fe_field_function.cc.o