Re: [deal.II] How to apply a spatially variable non-zero initial condition in step-52?

2020-06-07 Thread Krishnakumar Gopalakrishnan
Dear Dr Bangerth,

I tried using the VectorTools::project idea from step-25. However, my code
fails to compile, and I could not decipher the errors and do not know how
to fix this problem (have been stuck for a while).

The attached code tries to implement Step-52 (but for 1D), with homogenous
dirichelet BC  at the left edge and homogenous Neumann BC at the right
edge, with an initial value of 4/5*x*(1 - x/5) (a simple quadratic
function). I am also attaching the CMakeLists.txt (adapted from Step-52
suitably).

I'd appreciate help (from you and others here on the forum) to solve this
issue.

Krishna



On Tue, 14 Apr 2020 at 01:24, Wolfgang Bangerth 
wrote:

> On 4/13/20 6:00 PM, Krishnakumar Gopalakrishnan wrote:
> > I am currently working on Step-52, which solves the diffusion equation.
> >
> > I now want to disable the Method of Manufactured Solutions (MMS) i.e.
> get rid
> > of the forcing function which produces an expected analytical solution,
> in the
> > direction towards solving my real-world problem.  I also have set the
> > absorption coefficient to zero, so that the diffusion equation reduces
> to a
> > form analogous to the heat-equation.
> >
> > Currently, the initial condition is set to be the zero vector.
> >
> > As a first step, I'd like to set my initial solution to be sin(b*x) *
> sin(b*y).
> >
> > I am currently interested in using only the embedded explicit method
> driver
> > function. Within this, I suspect that the lines of interest are the
> following:
> >
> > solution = 0.;
> > constraint_matrix.distribute(solution);
> >
> >
> > But I am not quite sure how can this initial condition be imposed. Any
> help
> > will be much appreciated.
>
> You will want to take a look at step-25. That program uses
> VectorTools::project(), but you can also use VectorTools::interpolate()
> instead.
>
> Best
>   W.
>
>
> --
> 
> Wolfgang Bangerth  email: bange...@colostate.edu
> www: http://www.math.colostate.edu/~bangerth/
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/l-aX46O2McY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/462c6c7a-341d-1657-559e-d7a2a3164771%40colostate.edu
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CABvf3kby4Ju6HYu_bCVasyt3OBkvP%3DmPfx85E4C2Ozj6e%2Bd65g%40mail.gmail.com.
##
#  CMake script for the solid_diffusion program:
##

# Set the name of the project and target:
SET(PROJECT_NAME "solid_diffusion")
# SET(TARGET "solid_diffusion")
SET(TARGET ${PROJECT_NAME}.run)

SET(TARGET_SRC
${PROJECT_NAME}.cc
  )

# Define the output that should be cleaned:
SET(CLEAN_UP_FILES *.vtu *.pvd)

# Usually, you will not need to modify anything beyond this point...

CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)

FIND_PACKAGE(deal.II 9.2.0 QUIET
  HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR}
  )
IF(NOT ${deal.II_FOUND})
  MESSAGE(FATAL_ERROR "\n"
"*** Could not locate a (sufficiently recent) version of deal.II. ***\n\n"
"You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to 
cmake\n"
"or set an environment variable \"DEAL_II_DIR\" that contains this path."
)
ENDIF()

DEAL_II_INITIALIZE_CACHED_VARIABLES()
PROJECT(${TARGET})
DEAL_II_INVOKE_AUTOPILOT()


solid_diffusion.cc
Description: Binary data


Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread Wolfgang Bangerth

On 6/7/20 9:12 AM, Amaresh B wrote:
Thank you Luca for your reply. I can avoid 
parallel::distributed::Triangulation and use serial code. Can you suggest a 
method to save the solutions along with the triangulation which can be used 
for restarting code? Also please let me know if any example code is available.


step-69 does checkpoint restart.

Best
 W.


--

Wolfgang Bangerth  email: bange...@colostate.edu
   www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/2b66e0d9-5b10-2c3d-a9a4-733cd0bfcc3b%40colostate.edu.


Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Yes, I manage to install it!

Thank you Bruno.

I don't know where you are from, but for sure it must be a very good place.

Three months trying to install this very important software. It was
machines and operator limitations. It will be very important to my
Electrical Engineering graduation.

Now I will resume The Finite Element Course on Cursera.

The step-1 example compiled and function!

Sore for my naives questions. You are a nice person. Thank you again.

Sincerely,

Wilmar.

Em dom., 7 de jun. de 2020 às 17:51, Wilmar Alves Cruvinel Lima <
wilmar84018...@gmail.com> escreveu:

> Dear Bruno,
>
> I did only the commandmake.
>
> It runs relatively fast. Now I put
>
> make install
>
> After 1 1/2 hour it is on 70% of Building CXX object source...
>
> Until now noting is on /home/wilmar/dealii_library
>
> I hope that it will finish ok!
>
> Thank you again.
>
> Best regards.
>
> Wilmar.
>
> Em Dom, 7 de jun de 2020 15:37, Bruno Blais 
> escreveu:
>
>> Did you compile the library by using the "make install" command?
>> Cmake only configures the build but does not compile the library per say.
>> Best
>> Bruno
>>
>>
>> On Sunday, 7 June 2020 14:17:44 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>>
>>> Dear Bruno,
>>>
>>> Great! It functioned...
>>>
>>> I put the commands:
>>> wilmar@linuxmint:~/build$ *mkdir dealii_library*
>>>
>>> So, I put the command and it runned:
>>> wilmar@linuxmint:~/build$ *cmake /home/wilmar/dealii-9.1.1
>>> -DCMAKE_INSTALL_PREFIX=/home/wilmar/dealii_library*
>>> -- This is CMake 3.10.2
>>> --
>>> -- Include /home/wilmar/dealii-9.1.1/cmake/setup_external_macros.cmake
>>> -- Include /home/wilmar/dealii-9.1.1/cmake/macros/macro_add_flags.cmake
>>> -- Include
>>> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_compiler_setup.cmake
>>> -- Include
>>> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_cxx_compiler_bug.cmake
>>> -- Include
>>> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_mpi_interface.cmake
>>> . . .
>>>
>>> At the end, nothing was on  */home/wilmar/dealii_library.  *Maybe it is
>>> on dealii-9.1.1 but I didn't localize.
>>>
>>> In the last step I did something wrong?
>>>
>>> Em dom., 7 de jun. de 2020 às 13:41, Bruno Blais 
>>> escreveu:
>>>
 So there are two things you must keep in mind when you run cmake


 The command should be something similar to
 cmake /path/to/dealii/sources
 -DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install

 The first folder you point to is the folder you cloned the deal.II
 sources to (which will contain a CMakeLists.txt
 The second folder you point to is where you want to install. Keep in
 mind, the install directory should be different from the build directory.
 What happens is that you go from the sources to a build folder, and
 then you install the library. The build folder is an intermediary folder.

 Best
 Bruno




 On Sunday, 7 June 2020 12:06:38 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>
> Thank you Bruno,
>
> Yes, the valid path, I think, is  */home/wilmar/build . *Orientation
> on *https://www.dealii.org/current/readme.html
> * inform a different
> directory from unpacked Deal.II.
>
> So, I returned to run cmake again, with the command:
> wilmar@linuxmint:~build$
> *cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
> but cmake missed the CMakeLists.txt:
> *CMake Error: The source directory "/home/wilmar/build" does not
> appear to contain CMakeLists.txt*
>
> Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where
> the CMakeLists.txt for this compilation is.
>
> Thank you in advance for orientation!
>
> Wilmar (Brazil)  -  Running from Covid!
>
>
> Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais 
> escreveu:
>
>> Hello,
>> You are getting this error because the installation path that you
>> specified is not valid.
>> When you did you cmake command, you specific the installation path to
>> :  */path/to/install/dir/share/deal.II/scripts*
>> This path on your linux machine is not a valid path, and
>> consequently, this folder cannot be created.
>> You need to run cmake again and specify a valid installation path
>> (something like /home/your_user/dealii/ for instance).
>> You are very close to getting it to fully compile :)
>>
>> Best
>> Bruno
>>
>>
>> On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima
>> wrote:
>>>
>>> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after
>>> the command:
>>>
>>> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)
>>> it stops on [ 31%] Building CXX object
>>> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>>>
>>> So, I tried on another PC with 4 GB RAM. It builds CXX object until
>>> 10

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Dear Bruno,

I did only the commandmake.

It runs relatively fast. Now I put

make install

After 1 1/2 hour it is on 70% of Building CXX object source...

Until now noting is on /home/wilmar/dealii_library

I hope that it will finish ok!

Thank you again.

Best regards.

Wilmar.

Em Dom, 7 de jun de 2020 15:37, Bruno Blais 
escreveu:

> Did you compile the library by using the "make install" command?
> Cmake only configures the build but does not compile the library per say.
> Best
> Bruno
>
>
> On Sunday, 7 June 2020 14:17:44 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>
>> Dear Bruno,
>>
>> Great! It functioned...
>>
>> I put the commands:
>> wilmar@linuxmint:~/build$ *mkdir dealii_library*
>>
>> So, I put the command and it runned:
>> wilmar@linuxmint:~/build$ *cmake /home/wilmar/dealii-9.1.1
>> -DCMAKE_INSTALL_PREFIX=/home/wilmar/dealii_library*
>> -- This is CMake 3.10.2
>> --
>> -- Include /home/wilmar/dealii-9.1.1/cmake/setup_external_macros.cmake
>> -- Include /home/wilmar/dealii-9.1.1/cmake/macros/macro_add_flags.cmake
>> -- Include
>> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_compiler_setup.cmake
>> -- Include
>> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_cxx_compiler_bug.cmake
>> -- Include
>> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_mpi_interface.cmake
>> . . .
>>
>> At the end, nothing was on  */home/wilmar/dealii_library.  *Maybe it is
>> on dealii-9.1.1 but I didn't localize.
>>
>> In the last step I did something wrong?
>>
>> Em dom., 7 de jun. de 2020 às 13:41, Bruno Blais 
>> escreveu:
>>
>>> So there are two things you must keep in mind when you run cmake
>>>
>>>
>>> The command should be something similar to
>>> cmake /path/to/dealii/sources
>>> -DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install
>>>
>>> The first folder you point to is the folder you cloned the deal.II
>>> sources to (which will contain a CMakeLists.txt
>>> The second folder you point to is where you want to install. Keep in
>>> mind, the install directory should be different from the build directory.
>>> What happens is that you go from the sources to a build folder, and then
>>> you install the library. The build folder is an intermediary folder.
>>>
>>> Best
>>> Bruno
>>>
>>>
>>>
>>>
>>> On Sunday, 7 June 2020 12:06:38 UTC-4, Wilmar Alves Cruvinel Lima wrote:

 Thank you Bruno,

 Yes, the valid path, I think, is  */home/wilmar/build . *Orientation
 on *https://www.dealii.org/current/readme.html
 * inform a different
 directory from unpacked Deal.II.

 So, I returned to run cmake again, with the command:
 wilmar@linuxmint:~build$
 *cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
 but cmake missed the CMakeLists.txt:
 *CMake Error: The source directory "/home/wilmar/build" does not appear
 to contain CMakeLists.txt*

 Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where the
 CMakeLists.txt for this compilation is.

 Thank you in advance for orientation!

 Wilmar (Brazil)  -  Running from Covid!


 Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais 
 escreveu:

> Hello,
> You are getting this error because the installation path that you
> specified is not valid.
> When you did you cmake command, you specific the installation path to
> :  */path/to/install/dir/share/deal.II/scripts*
> This path on your linux machine is not a valid path, and consequently,
> this folder cannot be created.
> You need to run cmake again and specify a valid installation path
> (something like /home/your_user/dealii/ for instance).
> You are very close to getting it to fully compile :)
>
> Best
> Bruno
>
>
> On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima
> wrote:
>>
>> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after
>> the command:
>>
>> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)
>> it stops on [ 31%] Building CXX object
>> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>>
>> So, I tried on another PC with 4 GB RAM. It builds CXX object until
>> 100%:
>>
>> ...
>> [100%] Building CXX object
>> source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
>> [100%] Built target obj_non_matching_debug
>> Scanning dependencies of target deal_II.g
>> [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
>> [100%] Linking CXX shared library ../lib/libdeal_II.g.so
>> [100%] Built target deal_II.g
>> Scanning dependencies of target obj_integrators_debug
>> [100%] Built target obj_integrators_debug
>> Scanning dependencies of target obj_integrators_release
>> [100%] Built target obj_integrators_release
>> Scanning dependencies of target obj_rol_inst
>> [100%] Built target obj_

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Bruno Blais
Did you compile the library by using the "make install" command?
Cmake only configures the build but does not compile the library per say.
Best
Bruno


On Sunday, 7 June 2020 14:17:44 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>
> Dear Bruno,
>
> Great! It functioned...
>
> I put the commands:
> wilmar@linuxmint:~/build$ *mkdir dealii_library*
>
> So, I put the command and it runned:
> wilmar@linuxmint:~/build$ *cmake /home/wilmar/dealii-9.1.1 
> -DCMAKE_INSTALL_PREFIX=/home/wilmar/dealii_library*
> -- This is CMake 3.10.2
> -- 
> -- Include /home/wilmar/dealii-9.1.1/cmake/setup_external_macros.cmake
> -- Include /home/wilmar/dealii-9.1.1/cmake/macros/macro_add_flags.cmake
> -- Include 
> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_compiler_setup.cmake
> -- Include 
> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_cxx_compiler_bug.cmake
> -- Include 
> /home/wilmar/dealii-9.1.1/cmake/macros/macro_check_mpi_interface.cmake
> . . .
>
> At the end, nothing was on  */home/wilmar/dealii_library.  *Maybe it is 
> on dealii-9.1.1 but I didn't localize. 
>
> In the last step I did something wrong?
>
> Em dom., 7 de jun. de 2020 às 13:41, Bruno Blais  > escreveu:
>
>> So there are two things you must keep in mind when you run cmake
>>
>>
>> The command should be something similar to 
>> cmake /path/to/dealii/sources 
>> -DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install
>>
>> The first folder you point to is the folder you cloned the deal.II 
>> sources to (which will contain a CMakeLists.txt
>> The second folder you point to is where you want to install. Keep in 
>> mind, the install directory should be different from the build directory.
>> What happens is that you go from the sources to a build folder, and then 
>> you install the library. The build folder is an intermediary folder.
>>
>> Best
>> Bruno
>>
>>
>>
>>
>> On Sunday, 7 June 2020 12:06:38 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>>
>>> Thank you Bruno,
>>>
>>> Yes, the valid path, I think, is  */home/wilmar/build . *Orientation on 
>>> *https://www.dealii.org/current/readme.html 
>>> * inform a different 
>>> directory from unpacked Deal.II.
>>>
>>> So, I returned to run cmake again, with the command:
>>> wilmar@linuxmint:~build$ 
>>> *cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
>>> but cmake missed the CMakeLists.txt:   
>>> *CMake Error: The source directory "/home/wilmar/build" does not appear 
>>> to contain CMakeLists.txt*
>>>
>>> Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where the 
>>> CMakeLists.txt for this compilation is. 
>>>
>>> Thank you in advance for orientation!
>>>
>>> Wilmar (Brazil)  -  Running from Covid!
>>>
>>>
>>> Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais  
>>> escreveu:
>>>
 Hello,
 You are getting this error because the installation path that you 
 specified is not valid.
 When you did you cmake command, you specific the installation path to 
 :  */path/to/install/dir/share/deal.II/scripts*
 This path on your linux machine is not a valid path, and consequently, 
 this folder cannot be created.
 You need to run cmake again and specify a valid installation path 
 (something like /home/your_user/dealii/ for instance).
 You are very close to getting it to fully compile :)

 Best
 Bruno


 On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>
> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after 
> the command:
>
> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)  
> it stops on [ 31%] Building CXX object 
> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>
> So, I tried on another PC with 4 GB RAM. It builds CXX object until 
> 100%:
>
> ...
> [100%] Building CXX object 
> source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
> [100%] Built target obj_non_matching_debug
> Scanning dependencies of target deal_II.g
> [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
> [100%] Linking CXX shared library ../lib/libdeal_II.g.so
> [100%] Built target deal_II.g
> Scanning dependencies of target obj_integrators_debug
> [100%] Built target obj_integrators_debug
> Scanning dependencies of target obj_integrators_release
> [100%] Built target obj_integrators_release
> Scanning dependencies of target obj_rol_inst
> [100%] Built target obj_rol_inst
> Scanning dependencies of target obj_rol_release
> [100%] Built target obj_rol_release
> Scanning dependencies of target obj_rol_debug
> [100%] Built target obj_rol_debug
>
> but, there is a fly in the ointment. I proceeds:
>
> Install the project...
> -- Install configuration: "DebugRelease"
> CMake Error at cmake/scripts/cmake_install.cmake:41 (file):
>   file cannot create directory: 
>

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Dear Bruno,

Great! It functioned...

I put the commands:
wilmar@linuxmint:~/build$ *mkdir dealii_library*

So, I put the command and it runned:
wilmar@linuxmint:~/build$ *cmake /home/wilmar/dealii-9.1.1
-DCMAKE_INSTALL_PREFIX=/home/wilmar/dealii_library*
-- This is CMake 3.10.2
-- 
-- Include /home/wilmar/dealii-9.1.1/cmake/setup_external_macros.cmake
-- Include /home/wilmar/dealii-9.1.1/cmake/macros/macro_add_flags.cmake
-- Include
/home/wilmar/dealii-9.1.1/cmake/macros/macro_check_compiler_setup.cmake
-- Include
/home/wilmar/dealii-9.1.1/cmake/macros/macro_check_cxx_compiler_bug.cmake
-- Include
/home/wilmar/dealii-9.1.1/cmake/macros/macro_check_mpi_interface.cmake
. . .

At the end, nothing was on  */home/wilmar/dealii_library.  *Maybe it is on
dealii-9.1.1 but I didn't localize.

In the last step I did something wrong?

Em dom., 7 de jun. de 2020 às 13:41, Bruno Blais 
escreveu:

> So there are two things you must keep in mind when you run cmake
>
>
> The command should be something similar to
> cmake /path/to/dealii/sources
> -DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install
>
> The first folder you point to is the folder you cloned the deal.II sources
> to (which will contain a CMakeLists.txt
> The second folder you point to is where you want to install. Keep in mind,
> the install directory should be different from the build directory.
> What happens is that you go from the sources to a build folder, and then
> you install the library. The build folder is an intermediary folder.
>
> Best
> Bruno
>
>
>
>
> On Sunday, 7 June 2020 12:06:38 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>
>> Thank you Bruno,
>>
>> Yes, the valid path, I think, is  */home/wilmar/build . *Orientation on 
>> *https://www.dealii.org/current/readme.html
>> * inform a different
>> directory from unpacked Deal.II.
>>
>> So, I returned to run cmake again, with the command:
>> wilmar@linuxmint:~build$
>> *cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
>> but cmake missed the CMakeLists.txt:
>> *CMake Error: The source directory "/home/wilmar/build" does not appear
>> to contain CMakeLists.txt*
>>
>> Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where the
>> CMakeLists.txt for this compilation is.
>>
>> Thank you in advance for orientation!
>>
>> Wilmar (Brazil)  -  Running from Covid!
>>
>>
>> Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais 
>> escreveu:
>>
>>> Hello,
>>> You are getting this error because the installation path that you
>>> specified is not valid.
>>> When you did you cmake command, you specific the installation path to :
>>> */path/to/install/dir/share/deal.II/scripts*
>>> This path on your linux machine is not a valid path, and consequently,
>>> this folder cannot be created.
>>> You need to run cmake again and specify a valid installation path
>>> (something like /home/your_user/dealii/ for instance).
>>> You are very close to getting it to fully compile :)
>>>
>>> Best
>>> Bruno
>>>
>>>
>>> On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima wrote:

 I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after
 the command:

 wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)  it
 stops on [ 31%] Building CXX object
 source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.

 So, I tried on another PC with 4 GB RAM. It builds CXX object until
 100%:

 ...
 [100%] Building CXX object
 source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
 [100%] Built target obj_non_matching_debug
 Scanning dependencies of target deal_II.g
 [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
 [100%] Linking CXX shared library ../lib/libdeal_II.g.so
 [100%] Built target deal_II.g
 Scanning dependencies of target obj_integrators_debug
 [100%] Built target obj_integrators_debug
 Scanning dependencies of target obj_integrators_release
 [100%] Built target obj_integrators_release
 Scanning dependencies of target obj_rol_inst
 [100%] Built target obj_rol_inst
 Scanning dependencies of target obj_rol_release
 [100%] Built target obj_rol_release
 Scanning dependencies of target obj_rol_debug
 [100%] Built target obj_rol_debug

 but, there is a fly in the ointment. I proceeds:

 Install the project...
 -- Install configuration: "DebugRelease"
 CMake Error at cmake/scripts/cmake_install.cmake:41 (file):
   file cannot create directory:
 /path/to/install/dir/share/deal.II/scripts.
   Maybe need administrative privileges.
 Call Stack (most recent call first):
   cmake_install.cmake:42 (include)

 Makefile:73: recipe for target 'install' failed
 make: *** [install] Error 1

 The command did not manage to create the directoty
 */path/to/install/dir/share/deal.II/scripts*

 I feel that I crossed th

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Bruno Blais
So there are two things you must keep in mind when you run cmake


The command should be something similar to 
cmake /path/to/dealii/sources 
-DCMAKE_INSTALL_PREFIX=/path/to/where/you/want/to/install

The first folder you point to is the folder you cloned the deal.II sources 
to (which will contain a CMakeLists.txt
The second folder you point to is where you want to install. Keep in mind, 
the install directory should be different from the build directory.
What happens is that you go from the sources to a build folder, and then 
you install the library. The build folder is an intermediary folder.

Best
Bruno




On Sunday, 7 June 2020 12:06:38 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>
> Thank you Bruno,
>
> Yes, the valid path, I think, is  */home/wilmar/build . *Orientation on 
> *https://www.dealii.org/current/readme.html 
> * inform a different 
> directory from unpacked Deal.II.
>
> So, I returned to run cmake again, with the command:
> wilmar@linuxmint:~build$ 
> *cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
> but cmake missed the CMakeLists.txt:   
> *CMake Error: The source directory "/home/wilmar/build" does not appear to 
> contain CMakeLists.txt*
>
> Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where the 
> CMakeLists.txt for this compilation is. 
>
> Thank you in advance for orientation!
>
> Wilmar (Brazil)  -  Running from Covid!
>
>
> Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais  > escreveu:
>
>> Hello,
>> You are getting this error because the installation path that you 
>> specified is not valid.
>> When you did you cmake command, you specific the installation path to :  
>> */path/to/install/dir/share/deal.II/scripts*
>> This path on your linux machine is not a valid path, and consequently, 
>> this folder cannot be created.
>> You need to run cmake again and specify a valid installation path 
>> (something like /home/your_user/dealii/ for instance).
>> You are very close to getting it to fully compile :)
>>
>> Best
>> Bruno
>>
>>
>> On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>>
>>> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after the 
>>> command:
>>>
>>> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)  it 
>>> stops on [ 31%] Building CXX object 
>>> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>>>
>>> So, I tried on another PC with 4 GB RAM. It builds CXX object until 100%:
>>>
>>> ...
>>> [100%] Building CXX object 
>>> source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
>>> [100%] Built target obj_non_matching_debug
>>> Scanning dependencies of target deal_II.g
>>> [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
>>> [100%] Linking CXX shared library ../lib/libdeal_II.g.so
>>> [100%] Built target deal_II.g
>>> Scanning dependencies of target obj_integrators_debug
>>> [100%] Built target obj_integrators_debug
>>> Scanning dependencies of target obj_integrators_release
>>> [100%] Built target obj_integrators_release
>>> Scanning dependencies of target obj_rol_inst
>>> [100%] Built target obj_rol_inst
>>> Scanning dependencies of target obj_rol_release
>>> [100%] Built target obj_rol_release
>>> Scanning dependencies of target obj_rol_debug
>>> [100%] Built target obj_rol_debug
>>>
>>> but, there is a fly in the ointment. I proceeds:
>>>
>>> Install the project...
>>> -- Install configuration: "DebugRelease"
>>> CMake Error at cmake/scripts/cmake_install.cmake:41 (file):
>>>   file cannot create directory: 
>>> /path/to/install/dir/share/deal.II/scripts.
>>>   Maybe need administrative privileges.
>>> Call Stack (most recent call first):
>>>   cmake_install.cmake:42 (include)
>>>
>>> Makefile:73: recipe for target 'install' failed
>>> make: *** [install] Error 1
>>>
>>> The command did not manage to create the directoty  
>>> */path/to/install/dir/share/deal.II/scripts*
>>>
>>> I feel that I crossed the ocean and died on the beach!   but the cause 
>>> wasn't n-Cov19!
>>>
>>> Any help?
>>>
>> -- 
>> The deal.II project is located at http://www.dealii.org/
>> For mailing list/forum options, see 
>> https://groups.google.com/d/forum/dealii?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "deal.II User Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dea...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/cdc2ec84-0007-485b-9a8f-71daec1301ebo%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Gro

Re: [deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Wilmar Alves Cruvinel Lima
Thank you Bruno,

Yes, the valid path, I think, is  */home/wilmar/build . *Orientation
on *https://www.dealii.org/current/readme.html
* inform a different directory
from unpacked Deal.II.

So, I returned to run cmake again, with the command:
wilmar@linuxmint:~build$
*cmake -DCMAKE_INSTALL_PREFIX=/home/wilmar/build*
but cmake missed the CMakeLists.txt:
*CMake Error: The source directory "/home/wilmar/build" does not appear to
contain CMakeLists.txt*

Yes, CMakeLists.txt isn't on /home/wilmar/build. I don't know where the
CMakeLists.txt for this compilation is.

Thank you in advance for orientation!

Wilmar (Brazil)  -  Running from Covid!


Em dom., 7 de jun. de 2020 às 12:03, Bruno Blais 
escreveu:

> Hello,
> You are getting this error because the installation path that you
> specified is not valid.
> When you did you cmake command, you specific the installation path to :
> */path/to/install/dir/share/deal.II/scripts*
> This path on your linux machine is not a valid path, and consequently,
> this folder cannot be created.
> You need to run cmake again and specify a valid installation path
> (something like /home/your_user/dealii/ for instance).
> You are very close to getting it to fully compile :)
>
> Best
> Bruno
>
>
> On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>>
>> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after the
>> command:
>>
>> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)  it
>> stops on [ 31%] Building CXX object
>> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>>
>> So, I tried on another PC with 4 GB RAM. It builds CXX object until 100%:
>>
>> ...
>> [100%] Building CXX object
>> source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
>> [100%] Built target obj_non_matching_debug
>> Scanning dependencies of target deal_II.g
>> [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
>> [100%] Linking CXX shared library ../lib/libdeal_II.g.so
>> [100%] Built target deal_II.g
>> Scanning dependencies of target obj_integrators_debug
>> [100%] Built target obj_integrators_debug
>> Scanning dependencies of target obj_integrators_release
>> [100%] Built target obj_integrators_release
>> Scanning dependencies of target obj_rol_inst
>> [100%] Built target obj_rol_inst
>> Scanning dependencies of target obj_rol_release
>> [100%] Built target obj_rol_release
>> Scanning dependencies of target obj_rol_debug
>> [100%] Built target obj_rol_debug
>>
>> but, there is a fly in the ointment. I proceeds:
>>
>> Install the project...
>> -- Install configuration: "DebugRelease"
>> CMake Error at cmake/scripts/cmake_install.cmake:41 (file):
>>   file cannot create directory:
>> /path/to/install/dir/share/deal.II/scripts.
>>   Maybe need administrative privileges.
>> Call Stack (most recent call first):
>>   cmake_install.cmake:42 (include)
>>
>> Makefile:73: recipe for target 'install' failed
>> make: *** [install] Error 1
>>
>> The command did not manage to create the directoty
>> */path/to/install/dir/share/deal.II/scripts*
>>
>> I feel that I crossed the ocean and died on the beach!   but the cause
>> wasn't n-Cov19!
>>
>> Any help?
>>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/cdc2ec84-0007-485b-9a8f-71daec1301ebo%40googlegroups.com
> 
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAEK4bzwF9SF70BcEK0H_vA4n3Df7YEYUCjPAFL7SDgLcrXvtUA%40mail.gmail.com.


Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread luca.heltai
You could use a boost archive, and save the triangulation to a binary file 
using operator << (and >> to load it), i.e.:


#include 
#include 

...

std::ofstream file(filename, std::ios::binary | std::ios::trunc);
boost::archive::binary_oarchive oa(file);

oa << tria;


and then restore it with 


std::ifstream file(filename, std::ios::binary);
boost::archive::binary_iarchive ia(file);

ia >> tria;

Alternatively, use the method GridOut::write_vtu and GridIn::read_vtu.

Best,
Luca.

> On 7 Jun 2020, at 17:12, Amaresh B  wrote:
> 
> Thank you Luca for your reply. I can avoid 
> parallel::distributed::Triangulation and use serial code. Can you suggest a 
> method to save the solutions along with the triangulation which can be used 
> for restarting code? Also please let me know if any example code is available.
> 
> Thanks
> 
> Sincerely
> Amaresh
> 
> On Sun, Jun 7, 2020 at 8:39 PM luca.heltai  wrote:
> Amaresh,
> 
> as the documentation states, parallel::distributed::Triangulation is not 
> implemented in 1d. Consequently, parallel::distributed::SolutionTransfer will 
> not work in 1d. 
> 
> Are you running your code in debug mode? In debug mode several assertions are 
> throw when you try to instantiate a 1d parallel::distributed::Triangulation.
> 
> L.
> 
> > On 7 Jun 2020, at 16:59, Amaresh B  wrote:
> > 
> > I have even tried with subdivided_hyper_rectangle . The triangulation is 
> > not saved.
> > 
> > 
> > 
> > On Saturday, June 6, 2020 at 11:25:03 PM UTC+5:30, Amaresh B wrote:
> > Thank you peterrum for your reply.
> > 
> > I have tried the following commands. In both the cases, the triangulation 
> > was not saved. Please let me know if you have any suggestions.
> > 
> > 1.GridGenerator::hyper_cube (triangulation, 0., 40.0);
> > 
> > 
> > 2.   GridGenerator::hyper_rectangle(triangulation,
> >Point(0.0),
> >Point(40.0),
> >true);
> > 
> > 
> > Thanks,
> > Amaresh
> > 
> > 
> > On Saturday, June 6, 2020 at 9:33:20 PM UTC+5:30, peterrum wrote:
> > What type of triangulation are you using?
> > 
> > Peter
> > 
> > On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
> >   Dear all,
> > 
> > I am trying to save my triangulation and using the lines below. 
> > 'triangulation.save' commands works and saves the mesh if my domain is 
> > either 2D or 3D (i.e. dim=2 or 3). However, it does not save the 
> > triangulation if dim=1, nor it gives any error message. I will be thankful 
> > if someone can comment on it and give suggestions.
> > 
> > 
> > 
> >std::vector sol_transfer_vectors;
> >
> > sol_transfer_vectors.push_back(&solution0);
> > 
> > 
> > parallel::distributed::SolutionTransfer 
> > sol_transfer(dof_handler);
> >sol_transfer.prepare_for_serialization 
> > (sol_transfer_vectors);
> > 
> >triangulation.save("restart.mesh");
> > 
> > Thank you,
> > 
> > Regards
> > Amaresh
> >  
> > 
> > -- 
> > The deal.II project is located at http://www.dealii.org/
> > For mailing list/forum options, see 
> > https://groups.google.com/d/forum/dealii?hl=en
> > --- 
> > You received this message because you are subscribed to the Google Groups 
> > "deal.II User Group" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to dealii+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/dealii/816239ba-d993-4ae1-8772-77d920b946eeo%40googlegroups.com.
> 
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/618C643B-C88D-4BFF-B82D-A2B2675C467A%40gmail.com.
> 
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/CAE1SiMC7FgY6KdxsV5LNp4vePfYs136A%2BiXdLKjHc%3D%3D0pipgcQ%40mail.gmail.com.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"de

Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread Amaresh B
Thank you Luca for your reply. I can avoid
parallel::distributed::Triangulation and use serial code. Can you suggest a
method to save the solutions along with the triangulation which can be used
for restarting code? Also please let me know if any example code is
available.

Thanks

Sincerely
Amaresh

On Sun, Jun 7, 2020 at 8:39 PM luca.heltai  wrote:

> Amaresh,
>
> as the documentation states, parallel::distributed::Triangulation is not
> implemented in 1d. Consequently, parallel::distributed::SolutionTransfer
> will not work in 1d.
>
> Are you running your code in debug mode? In debug mode several assertions
> are throw when you try to instantiate a 1d
> parallel::distributed::Triangulation.
>
> L.
>
> > On 7 Jun 2020, at 16:59, Amaresh B  wrote:
> >
> > I have even tried with subdivided_hyper_rectangle . The triangulation is
> not saved.
> >
> >
> >
> > On Saturday, June 6, 2020 at 11:25:03 PM UTC+5:30, Amaresh B wrote:
> > Thank you peterrum for your reply.
> >
> > I have tried the following commands. In both the cases, the
> triangulation was not saved. Please let me know if you have any suggestions.
> >
> > 1.GridGenerator::hyper_cube (triangulation, 0., 40.0);
> >
> >
> > 2.   GridGenerator::hyper_rectangle(triangulation,
> >Point(0.0),
> >Point(40.0),
> >true);
> >
> >
> > Thanks,
> > Amaresh
> >
> >
> > On Saturday, June 6, 2020 at 9:33:20 PM UTC+5:30, peterrum wrote:
> > What type of triangulation are you using?
> >
> > Peter
> >
> > On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
> >   Dear all,
> >
> > I am trying to save my triangulation and using the lines below.
> 'triangulation.save' commands works and saves the mesh if my domain is
> either 2D or 3D (i.e. dim=2 or 3). However, it does not save the
> triangulation if dim=1, nor it gives any error message. I will be thankful
> if someone can comment on it and give suggestions.
> >
> >
> >
> >std::vector
> sol_transfer_vectors;
> >
> sol_transfer_vectors.push_back(&solution0);
> >
> >
>  parallel::distributed::SolutionTransfer
> sol_transfer(dof_handler);
> >sol_transfer.prepare_for_serialization
> (sol_transfer_vectors);
> >
> >triangulation.save("restart.mesh");
> >
> > Thank you,
> >
> > Regards
> > Amaresh
> >
> >
> > --
> > The deal.II project is located at http://www.dealii.org/
> > For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> > ---
> > You received this message because you are subscribed to the Google
> Groups "deal.II User Group" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to dealii+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/816239ba-d993-4ae1-8772-77d920b946eeo%40googlegroups.com
> .
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/618C643B-C88D-4BFF-B82D-A2B2675C467A%40gmail.com
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAE1SiMC7FgY6KdxsV5LNp4vePfYs136A%2BiXdLKjHc%3D%3D0pipgcQ%40mail.gmail.com.


Re: [deal.II] triangulation save not working for 1D domain

2020-06-07 Thread luca.heltai
Amaresh,

as the documentation states, parallel::distributed::Triangulation is not 
implemented in 1d. Consequently, parallel::distributed::SolutionTransfer will 
not work in 1d. 

Are you running your code in debug mode? In debug mode several assertions are 
throw when you try to instantiate a 1d parallel::distributed::Triangulation.

L.

> On 7 Jun 2020, at 16:59, Amaresh B  wrote:
> 
> I have even tried with subdivided_hyper_rectangle . The triangulation is not 
> saved.
> 
> 
> 
> On Saturday, June 6, 2020 at 11:25:03 PM UTC+5:30, Amaresh B wrote:
> Thank you peterrum for your reply.
> 
> I have tried the following commands. In both the cases, the triangulation was 
> not saved. Please let me know if you have any suggestions.
> 
> 1.GridGenerator::hyper_cube (triangulation, 0., 40.0);
> 
> 
> 2.   GridGenerator::hyper_rectangle(triangulation,
>Point(0.0),
>Point(40.0),
>true);
> 
> 
> Thanks,
> Amaresh
> 
> 
> On Saturday, June 6, 2020 at 9:33:20 PM UTC+5:30, peterrum wrote:
> What type of triangulation are you using?
> 
> Peter
> 
> On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
>   Dear all,
> 
> I am trying to save my triangulation and using the lines below. 
> 'triangulation.save' commands works and saves the mesh if my domain is either 
> 2D or 3D (i.e. dim=2 or 3). However, it does not save the triangulation if 
> dim=1, nor it gives any error message. I will be thankful if someone can 
> comment on it and give suggestions.
> 
> 
> 
>std::vector sol_transfer_vectors;
>sol_transfer_vectors.push_back(&solution0);
> 
> 
> parallel::distributed::SolutionTransfer 
> sol_transfer(dof_handler);
>sol_transfer.prepare_for_serialization 
> (sol_transfer_vectors);
> 
>triangulation.save("restart.mesh");
> 
> Thank you,
> 
> Regards
> Amaresh
>  
> 
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dealii+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/816239ba-d993-4ae1-8772-77d920b946eeo%40googlegroups.com.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/618C643B-C88D-4BFF-B82D-A2B2675C467A%40gmail.com.


[deal.II] Re: Almost installed Deal II, but there is a fly in the ointment!

2020-06-07 Thread Bruno Blais
Hello,
You are getting this error because the installation path that you specified 
is not valid.
When you did you cmake command, you specific the installation path to :  
*/path/to/install/dir/share/deal.II/scripts*
This path on your linux machine is not a valid path, and consequently, this 
folder cannot be created.
You need to run cmake again and specify a valid installation path 
(something like /home/your_user/dealii/ for instance).
You are very close to getting it to fully compile :)

Best
Bruno


On Sunday, 7 June 2020 09:54:39 UTC-4, Wilmar Alves Cruvinel Lima wrote:
>
> I tried to install Deal II (dealii) on a PC with 2 GB RAM, but after the 
> command:
>
> wilmar@linuxmint:~build$ *make --jobs=1 install  *(jobs=4 was bad)  it 
> stops on [ 31%] Building CXX object 
> source/fe/CMakeFiles/obj_fe_release.dir/fe_q.cc.o.
>
> So, I tried on another PC with 4 GB RAM. It builds CXX object until 100%:
>
> ...
> [100%] Building CXX object 
> source/non_matching/CMakeFiles/obj_non_matching_debug.dir/immersed_surface_quadrature.cc.o
> [100%] Built target obj_non_matching_debug
> Scanning dependencies of target deal_II.g
> [100%] Building CXX object source/CMakeFiles/deal_II.g.dir/dummy.cc.o
> [100%] Linking CXX shared library ../lib/libdeal_II.g.so
> [100%] Built target deal_II.g
> Scanning dependencies of target obj_integrators_debug
> [100%] Built target obj_integrators_debug
> Scanning dependencies of target obj_integrators_release
> [100%] Built target obj_integrators_release
> Scanning dependencies of target obj_rol_inst
> [100%] Built target obj_rol_inst
> Scanning dependencies of target obj_rol_release
> [100%] Built target obj_rol_release
> Scanning dependencies of target obj_rol_debug
> [100%] Built target obj_rol_debug
>
> but, there is a fly in the ointment. I proceeds:
>
> Install the project...
> -- Install configuration: "DebugRelease"
> CMake Error at cmake/scripts/cmake_install.cmake:41 (file):
>   file cannot create directory: /path/to/install/dir/share/deal.II/scripts.
>   Maybe need administrative privileges.
> Call Stack (most recent call first):
>   cmake_install.cmake:42 (include)
>
> Makefile:73: recipe for target 'install' failed
> make: *** [install] Error 1
>
> The command did not manage to create the directoty  
> */path/to/install/dir/share/deal.II/scripts*
>
> I feel that I crossed the ocean and died on the beach!   but the cause 
> wasn't n-Cov19!
>
> Any help?
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/cdc2ec84-0007-485b-9a8f-71daec1301ebo%40googlegroups.com.


[deal.II] Re: About metallic ductile damage

2020-06-07 Thread Bruno Blais
Dear Itachi,
Deal.II is significantly different than abaqus in the fact that you easily 
write you own equation and solve from it using whatever mean you find 
necessary.
However, it does not come readily built with a library of physical solvers 
or constitutive laws. Consequently, you will have to build your own weak 
form for your problem of interest (although this can be made much easier 
with automatic differentiation facilities)..

So consequently, any user material can be defined in deal.II, but it is 
significantly different than what you would obtained using a UMAT file for 
instance.

Best
Bruno


On Saturday, 6 June 2020 16:08:47 UTC-4, itachi Ezio wrote:
>
> Hi,
>
> I'm Abaqus user and fresh new about using deal.II. I'd like to ask a few 
> questions base on deal.II functions.
>
> I'm looking for the simulation for metallic ductile damage behavior with 
> deal.II ( for example with triaxiality and lode angle), is it possible?
>
> And how is it like to write user materials in deal.II, especially in 
> plasticity behaviors? Is it also quit sophisticated as in UMAT in Abaqus?
>
> Looking forward to the answers, thanks for that!  
>
>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c535b46f-c2a6-4db9-ac58-c25bca4dbbeco%40googlegroups.com.


[deal.II] Re: triangulation save not working for 1D domain

2020-06-07 Thread Amaresh B
I have even tried with subdivided_hyper_rectangle 

 . 
The triangulation is not saved.



On Saturday, June 6, 2020 at 11:25:03 PM UTC+5:30, Amaresh B wrote:
>
> Thank you peterrum for your reply.
>
> I have tried the following commands. In both the cases, the triangulation 
> was not saved. Please let me know if you have any suggestions.
>
> 1.GridGenerator::hyper_cube (triangulation, 0., 40.0);
>
>
> 2.   GridGenerator::hyper_rectangle(triangulation,
>  Point(0.0),
>  Point(40.0),
>  true);
>
>
> Thanks,
> Amaresh
>
>
> On Saturday, June 6, 2020 at 9:33:20 PM UTC+5:30, peterrum wrote:
>>
>> What type of triangulation are you using?
>>
>> Peter
>>
>> On Saturday, 6 June 2020 17:52:53 UTC+2, Amaresh B wrote:
>>>
>>>   Dear all,
>>>
>>> I am trying to save my triangulation and using the lines below. 
>>> 'triangulation.save' commands works and saves the mesh if my domain is 
>>> either 2D or 3D (i.e. dim=2 or 3). However, it does not save the 
>>> triangulation if dim=1, nor it gives any error message. I will be thankful 
>>> if someone can comment on it and give suggestions.
>>>
>>>
>>>
>>>std::vector 
>>> sol_transfer_vectors;
>>>sol_transfer_vectors.push_back(&solution0);
>>> 
>>> 
>>> parallel::distributed::SolutionTransfer 
>>> sol_transfer(dof_handler);
>>>  sol_transfer.prepare_for_serialization 
>>> (sol_transfer_vectors);
>>>
>>>   triangulation.save("restart.mesh");
>>>
>>> Thank you,
>>>
>>> Regards
>>> Amaresh
>>>  
>>>
>>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/816239ba-d993-4ae1-8772-77d920b946eeo%40googlegroups.com.


[deal.II] [deal.ii]mesh import problem

2020-06-07 Thread 陈敏
Hi Deal.ii team,

I want to import the mesh file exported by gmsh.

First,I export mymodel.geo file to vtk file in gmsh, automatically,the
first line of the vtk is “# vtk DataFile Version 2.0” , so I change it to “ #
vtk DataFile Version 3.0”. However, an error is reported as follow:

libc++abi.dylib: terminating with uncaught exception of type
dealii::StandardExceptions::ExcMessage:

An error occurred in line <286> of file

in function
void dealii::GridIn<2, 2>::read_vtk(std::istream &) [dim = 2, spacedim
= 2]
The violated condition was:
false
Additional information:
While reading VTK file, unknown cell type encountered


*Then, I find out the CELLTYPE of VERTEX is recorded, Consequently, I
deleted the point record in CELLS and CELL_TYPES. But there are still
errors.*

libc++abi.dylib: terminating with uncaught exception of type
dealii::StandardExceptions::ExcNotImplemented:

An error occurred in line <257> of file

in function
void dealii::GridIn<2, 2>::read_vtk(std::istream &) [dim = 2, spacedim
= 2]
The violated condition was:
subcelldata.boundary_lines.size() == 0
Additional information:
You are trying to use functionality in deal.II that is currently not
implemented. In many cases, this indicates that there simply didn't appear
much of a need for it, or that the author of the original code did not have
the time to implement a particular case. If you hit this exception, it is
therefore worth the time to look into the code to find out whether you may
be able to implement the missing functionality. If you do, please consider
providing a patch to the deal.II development sources (see the deal.II
website on how to contribute).


*Other format are not imported successfully, for example, the inp format
get the errors as follows:*

Exception on processing internal UCD data:


An error occurred in line <857> of file

in function
void dealii::GridIn<2, 2>::read_ucd(std::istream &, const bool) [dim =
2, spacedim = 2]
The violated condition was:
false
Additional information:
While creating cell 0, you are referencing a vertex with index 0 but no
vertex with this index has been described in the input file.


libc++abi.dylib: terminating with uncaught exception of type
dealii::StandardExceptions::ExcMessage:

An error occurred in line <1064> of file

in function
void dealii::GridIn<2, 2>::read_abaqus(std::istream &, const bool) [dim
= 2, spacedim = 2]
The violated condition was:
false
Additional information:
Internal conversion from ABAQUS file to UCD format was unsuccessful.
More information is provided in an error message printed above. Are you
sure that your ABAQUS mesh file conforms with the requirements listed in
the documentation?


*Could anyone let me known how to import mesh ?*

Thank you,
Chen

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CADr3OdJU%2BEm1%2B%3DBtn%3DvWzB2nt%2B09DU-wPxv_CcpSTKxcRzuRUw%40mail.gmail.com.