Re: [deal.II] [Assigning boundary condition to node]

2024-02-22 Thread Daniel Arndt
Can specify what you mean by "assign a certain BC [boundary condition] to a
node"? Typically boundary conditions only make sense on the boundary of a
mesh with codimension 1 (embedded in the same physical space).
Thus, you would only consider setting boundary conditions on a node/point
(0-dimensional) if you are dealing with a 1d-mesh.
You can, of course, just add a constraint for a specific degree of freedom
in your AffineConstraints object, also see step-11.

Best,
Daniel

On Thu, Feb 22, 2024 at 1:14 PM veerendra koilakuntla <
veerendrak...@gmail.com> wrote:

> Dear community,
>
> Is there a way to assign a certain BC to a node? Or are we stiĺl
> struggling a lot to do this in deal.ii?
>
> --
> 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/CAHd4K04CVnai-H7pt%3DnyBPm9tQQ3XV%3DGvFNGd8%3Dxog9qpqJgWg%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 
"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/CAOYDWbJmc_e2JmVdiJrO5%2B6i2RZEoxXWELccEepS7jmyGNc7hg%40mail.gmail.com.


[deal.II] [Assigning boundary condition to node]

2024-02-22 Thread veerendra koilakuntla
Dear community,

Is there a way to assign a certain BC to a node? Or are we stiĺl struggling
a lot to do this in deal.ii?

-- 
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/CAHd4K04CVnai-H7pt%3DnyBPm9tQQ3XV%3DGvFNGd8%3Dxog9qpqJgWg%40mail.gmail.com.


[deal.II] Re: Modifying Cmake to have Deal.ii include paths

2024-02-22 Thread Bruno Turcksin
Hello,

You can just set DEAL_II_DIR in your environment. If you are using bash you 
can do `export DEAL_II_DIR=/path/to/deal.II` in your terminal or put that 
line you .bashrc if you want to do this permanently. Personally, I just 
write the cmake line in a file and make the file executable. When I need to 
call cmake, I just call the executable.

Best,

Bruno 

On Thursday, February 22, 2024 at 8:33:30 AM UTC-5 dubioust...@gmail.com 
wrote:

> Hi,
>
> This may be a newb question. I am probably struggling understanding how to 
> set paths in cmake and spent some time reading the documentation for cmake.
>
> My question is, how can I set the DEAL_II_DIR in the CMakeLists.txt so I 
> don't have to provide a path every time I call the cmake command?
>
> Thanks
>

-- 
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/9f8385f5-9b43-4613-9eea-60188a107d81n%40googlegroups.com.


Re: [deal.II] Modifying Cmake to have Deal.ii include paths

2024-02-22 Thread Nils Schween
Hi Xavier,

i think the following command will do:

set(DEAL_II_MIN_VERSION "9.5.0")
set(DEAL_II_DIR "~/.local/lib/dealii")
find_package(deal.II ${DEAL_II_MIN_VERSION} REQUIRED
 HINTS ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR})
IF(NOT ${deal.II_FOUND})
MESSAGE(FATAL_ERROR
  "*** Could not locate a (sufficiently recent) version of deal.II. ***\n"
  "You may want to either pass a flag -DDEAL_II_DIR=/path/to/deal.II to cmake"
  " or set an environment variable \"DEAL_II_DIR\".")
ENDIF()

Regards,
Nils


Xavier Johnson  writes:

> Hi,
>
> This may be a newb question. I am probably struggling understanding how to 
> set paths in cmake and spent some time reading the documentation for
> cmake.
>
> My question is, how can I set the DEAL_II_DIR in the CMakeLists.txt so I 
> don't have to provide a path every time I call the cmake command?
>
> Thanks

-- 
Nils Schween
PhD Student

Phone: +49 6221 516 557
Mail: nils.schw...@mpi-hd.mpg.de
PGP-Key: 4DD3DCC0532EE96DB0C1F8B5368DBFA14CB81849

Max Planck Institute for Nuclear Physics
Astrophysical Plasma Theory (APT)
Saupfercheckweg 1, D-69117 Heidelberg
https://www.mpi-hd.mpg.de/mpi/en/research/scientific-divisions-and-groups/independent-research-groups/apt

-- 
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/874je0lil7.fsf%40mpi-hd.mpg.de.


[deal.II] Modifying Cmake to have Deal.ii include paths

2024-02-22 Thread Xavier Johnson
Hi,

This may be a newb question. I am probably struggling understanding how to 
set paths in cmake and spent some time reading the documentation for cmake.

My question is, how can I set the DEAL_II_DIR in the CMakeLists.txt so I 
don't have to provide a path every time I call the cmake command?

Thanks

-- 
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/15b50749-5884-410a-a6a3-1686db7df5b1n%40googlegroups.com.