Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-13 Thread Jean-Paul Pelteret

Hi Nick,

Here's where the documentation for create_source_vector() is
https://dealii.org/current/doxygen/deal.II/namespaceVectorTools.html#ac4e531baa71a5183079fd2083aa7d723 

. What this function does, and what arguments it takes are described in 
quite a lot of detail.


Adding to what Wolfgang already said, remember that there's extensive 
documentation for most functions, so that should always be the first 
place that you turn to when you run into troubles like this. With both 
the online and offline documentation there is a basic search utility, as 
well as a categorisations that should help navigate the documentation. 
It might be a little bit overwhelming at first (because there is so much 
of it), but its worth the effort to learn how to find functions, 
classes, etc. in the documentation. You might also benefit from watching 
some of the many lectures on programming, PDEs, and related topics that 
Wolfgang has shared with us all. You can find those here:
https://www.math.colostate.edu/~bangerth/videos.html 



Best,
Jean-Paul

On 13.11.20 17:15, Wolfgang Bangerth wrote:

On 11/13/20 2:03 AM, Nick Wang wrote:

  I replaced the previous right-hand matrix with a point vector
But when I Debug my file,  It reminds me that

*1>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8p1\step-8.cc(188,4): 
error C2672: “create_point_source_vector”: no matching overloaded 
function found*

*
*
  So do I have to modify the code of this part of the assembly 
system?  How to modify this part?


Nick:
I think all of us here would like to help you more, but you seem to 
have too little background in both PDEs and programming. What the 
compiler is telling you is actually quite self-descriptive: You try to 
call a function with a given argument list, but no such function exists.


You will find yourself endlessly frustrated if you have to ask on a 
mailing list every time you encounter an error like this. You need to 
build up a better background in programming (and in the concepts that 
underlie the finite element method) if you want to be productive with 
deal.II.


Best
 WB



--
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/2660f31c-2360-be2e-11cf-f686d262d4c8%40gmail.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-13 Thread Wolfgang Bangerth

On 11/13/20 2:03 AM, Nick Wang wrote:

  I replaced the previous right-hand matrix with a point vector
But when I Debug my file,  It reminds me that

*1>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8p1\step-8.cc(188,4): error 
C2672: “create_point_source_vector”: no matching overloaded function found*

*
*
  So do I have to modify the code of this part of the assembly system?  How to 
modify this part?


Nick:
I think all of us here would like to help you more, but you seem to have too 
little background in both PDEs and programming. What the compiler is telling 
you is actually quite self-descriptive: You try to call a function with a 
given argument list, but no such function exists.


You will find yourself endlessly frustrated if you have to ask on a mailing 
list every time you encounter an error like this. You need to build up a 
better background in programming (and in the concepts that underlie the finite 
element method) if you want to be productive with deal.II.


Best
 WB

--

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/79cd4adc-19bf-d4a1-0490-25e08edd91d8%40colostate.edu.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-13 Thread Nick Wang
Thanks, Wolfgang,
 I replaced the previous right-hand matrix with a point vector
But when I Debug my file,  It reminds me that

*1>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8p1\step-8.cc(188,4): error 
C2672: “create_point_source_vector”: no matching overloaded function found*

 So do I have to modify the code of this part of the assembly system?  How 
to modify this part?

Attach part of the code.

for (const auto  : dof_handler.active_cell_iterators())
{
cell_matrix = 0;
cell_rhs = 0;
fe_values.reinit(cell);
lambda.value_list(fe_values.get_quadrature_points(), lambda_values);
mu.value_list(fe_values.get_quadrature_points(), mu_values);
*create_point_source_vector(fe_values.get_quadrature_points(), rhs_values);*

Best,

Nick
在2020年11月12日星期四 UTC+8 上午12:47:55 写道:

> On 11/10/20 8:53 PM, Nick Wang wrote:
> > I probably understand that I need to add a vector force to change my 
> right 
> > hand matrix
> > But I am not very good at modifying this part of the content through 
> code of 
> > Deal.ii
> > How can mathematical knowledge be transformed into deal.ii code?
> > So do I need to replace the original right-hand matrix on the basis of 
> step8?
>
> Correct. If you want a point load, you need to replace the right hand side 
> used there by code similar to the one I pointed out.
>
> Best
> WB
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/937134f7-da72-4be5-800e-443c02cbd826n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-11 Thread Wolfgang Bangerth

On 11/10/20 8:53 PM, Nick Wang wrote:
I probably understand that I need to add a vector force to change my right 
hand matrix
But I am not very good at modifying this part of the content through code of 
Deal.ii

How can mathematical knowledge be transformed into deal.ii code?
So do I need to replace the original right-hand matrix on the basis of step8?


Correct. If you want a point load, you need to replace the right hand side 
used there by code similar to the one I pointed out.


Best
 WB

--

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/2ccd55cb-cda8-263c-b302-8f3e8602bbd0%40colostate.edu.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-10 Thread Nick Wang
I probably understand that I need to add a vector force to change my right 
hand matrix
But I am not very good at modifying this part of the content through code 
of Deal.ii 
How can mathematical knowledge be transformed into deal.ii code?
So do I need to replace the original right-hand matrix on the basis of 
step8?
Or is it enough to directly define a new point load vector?
 Can you give me an example on the basis of step8 for a better 
understanding?

Thanks, 

Best wishes!

Nick

在2020年11月11日星期三 UTC+8 上午3:22:56 写道:

> On 11/10/20 12:11 AM, Nick Wang wrote:
> > Uh, what I want to do is to use deal.ii to simulate our own model,
> > Before using deal.ii , I used some numerical simulation software like 
> abaqus.
> > However, it will be very difficult to use abaqus to simulate seepage 
> flow 
> > and multiphase coupling.
> > I tried to use deal to build a simple model to deepen my understanding 
> of this 
> > software.
> > So on the basis of step-8, I imported an external mesh model,
> > On this basic elastic equation, I tried to add some loads to analyze the 
> > deformation characteristics of this model like abaqus
> > Then further modify the constitutive equation, like an elastoplastic 
> problem...
> > So I am trying to add a point load(parallel load) anywhere on the model 
> first 
> > but I don't know how to achieve it.
>
> Nick,
> so let's say you want to add a point load at a point x0 in direction d. 
> That 
> corresponds to a vector force
> \vec f(x) = \vec d * delta(x-x0)
> What you then need to compute the right hand side vector for your finite 
> element scheme is to compute
> F_i = \int_\Omega \vec phi_i(x) \cdot \vec f(x)
> = \vec d \cdot \vec \phi_i(x)
>
> You'd implement something like this in the same way as the 
> VectorTools::compute_point_source_vector() does for the scalar case. The 
> implementation of that case can be found here:
>
>
> https://github.com/dealii/dealii/blob/master/include/deal.II/numerics/vector_tools_point_value.templates.h#L276-L309
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/c9289f64-54f5-4d8f-8569-7d2ce5c655a8n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-10 Thread Wolfgang Bangerth

On 11/10/20 12:11 AM, Nick Wang wrote:

Uh, what I want to do is to use deal.ii to simulate our own model,
Before using deal.ii , I used some numerical simulation software like abaqus.
However, it will be very difficult to use abaqus to simulate seepage flow 
and multiphase coupling.
I tried to use deal to build a simple model to deepen my understanding of this 
software.

So on the basis of step-8, I imported an external mesh model,
On this basic elastic equation, I tried to add some loads to analyze the 
deformation characteristics of this model like abaqus

Then further modify the constitutive equation, like an elastoplastic problem...
So I am trying to add a point load(parallel load) anywhere on the model first 
but I don't know how to achieve it.


Nick,
so let's say you want to add a point load at a point x0 in direction d. That 
corresponds to a vector force

  \vec f(x) = \vec d * delta(x-x0)
What you then need to compute the right hand side vector for your finite 
element scheme is to compute

  F_i = \int_\Omega \vec phi_i(x) \cdot \vec f(x)
  = \vec d \cdot \vec \phi_i(x)

You'd implement something like this in the same way as the 
VectorTools::compute_point_source_vector() does for the scalar case. The 
implementation of that case can be found here:


https://github.com/dealii/dealii/blob/master/include/deal.II/numerics/vector_tools_point_value.templates.h#L276-L309

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/22f233c6-ba0f-ce6a-2f3a-9f17b556bf17%40colostate.edu.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
Uh, what I want to do is to use deal.ii to simulate our own model, 
Before using deal.ii , I used some numerical simulation software like 
abaqus.
However, it will be very difficult to use abaqus to simulate seepage flow 
and multiphase coupling.
I tried to use deal to build a simple model to deepen my understanding of 
this software.
So on the basis of step-8, I imported an external mesh model,
On this basic elastic equation, I tried to add some loads to analyze the 
deformation characteristics of this model like abaqus
Then further modify the constitutive equation, like an elastoplastic 
problem...
So I am trying to add a point load(parallel load) anywhere on the model 
first but I don't know how to achieve it.

Thanks,

Nick
在2020年11月10日星期二 UTC+8 下午12:49:46 写道:

> On 11/9/20 8:11 PM, Nick Wang wrote:
> > 
> > But I am still confused as to how I should add some load? Attach my code.
> > 
> > template 
> > void create_point_source_vector(const std::vector>& points,
> > std::vector>& values)
> > {
> > Point point_1;
> > point_1(0) = 0.5;
> > point_1(1) = 0.3;
> > 
> > values[point_1][1] = -10.0;
> > 
> > }
>
>
> Nick -- it's not clear to me what precisely you want to do here. You set 
> the 
> coordinates of one point, and then you try to set an element of a vector 
> (though you will get a compiler error because the point_1 can't be the 
> index 
> into values[...]). Can you write out in mathematical or otherwise concise 
> terms what you are trying to do?
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/67f2d436-7b33-4a5c-b211-ec275d006626n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Wolfgang Bangerth

On 11/9/20 8:11 PM, Nick Wang wrote:


But I am still confused as to how I should add some load? Attach my code.

template 
void create_point_source_vector(const std::vector>& points,
std::vector>& values)
{
Point point_1;
point_1(0) = 0.5;
point_1(1) = 0.3;

values[point_1][1] = -10.0;

}



Nick -- it's not clear to me what precisely you want to do here. You set the 
coordinates of one point, and then you try to set an element of a vector 
(though you will get a compiler error because the point_1 can't be the index 
into values[...]). Can you write out in mathematical or otherwise concise 
terms what you are trying to do?


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/cc64b7ee-d007-2d31-d2c3-3f2cc186efa9%40colostate.edu.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
Thanks, Wolfgang, I think reading some PDE knowledge materials would help 
me to solve the constitutive equation problems.

I try to read the create_point_source_vector()  class in deal.ii 
https://www.dealii.org/9.2.0/doxygen/deal.II/namespaceVectorTools.html#ac4e531baa71a5183079fd2083aa7d723

But I am still confused as to how I should add some load? Attach my code.

template 
void create_point_source_vector(const std::vector>& points,
std::vector>& values)
{
Point point_1;
point_1(0) = 0.5;
point_1(1) = 0.3;

values[point_1][1] = -10.0;

}

It seems to be useless...
在2020年11月10日星期二 UTC+8 上午8:32:16 写道:

>
> Nick,
>
> > If I want to modify the constitutive equation based on step-8, but I 
> can't 
> > understand the expression you described in step8, like this.
> > 
> > [...]
> > 
> > Which aspect of knowledge should I learn if I want to modify the 
> constitutive 
> > equation.
>
> This is a question that goes beyond what we can provide here. You are in 
> essence saying that you don't know how to read a partial differential 
> equation. I would suggest you take a course on PDEs (or read a book on the 
> theory of partial differential equations) or at least a course on 
> mechanics 
> that covers how these equations are derived and what they mean.
>
> If your goal is modeling of materials, there are many books on solid 
> mechanics.
>
>
> > Or can I export the .inp file in Abaqus modeling and directly calculate 
> it in 
> > Deal.ii? Does Deal.ii support such operations?
>
> It's not that easy, but it's also not going to be useful to you: If you 
> don't 
> understand how constitutive equations are posed and what the different 
> pieces 
> mean, how do you expect to find out whether something is correct or not 
> *even 
> if you could magically import them into deal.II*? Doing "something" with a 
> code (whether that is ABAQUS or deal.II) doesn't mean that what you get is 
> correct or useful -- being able to tell whether something is correct or 
> useful 
> requires understanding, which requires sufficient theoretical background.
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/f88ecde1-7cc1-4679-80f7-0235a5f7180an%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Wolfgang Bangerth



Nick,

If I want to modify the constitutive equation based on step-8, but I can't 
understand the expression you described in step8, like this.


[...]

Which aspect of knowledge should I learn if I want to modify the constitutive 
equation.


This is a question that goes beyond what we can provide here. You are in 
essence saying that you don't know how to read a partial differential 
equation. I would suggest you take a course on PDEs (or read a book on the 
theory of partial differential equations) or at least a course on mechanics 
that covers how these equations are derived and what they mean.


If your goal is modeling of materials, there are many books on solid mechanics.


Or can I export the .inp file in Abaqus modeling and directly calculate it in 
Deal.ii? Does Deal.ii support such operations?


It's not that easy, but it's also not going to be useful to you: If you don't 
understand how constitutive equations are posed and what the different pieces 
mean, how do you expect to find out whether something is correct or not *even 
if you could magically import them into deal.II*? Doing "something" with a 
code (whether that is ABAQUS or deal.II) doesn't mean that what you get is 
correct or useful -- being able to tell whether something is correct or useful 
requires understanding, which requires sufficient theoretical background.


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/62163ab2-cdad-93f7-b05d-98c99a493904%40colostate.edu.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
[image: Snipaste_1.png]

在2020年11月9日星期一 UTC+8 下午4:12:07 写道:

> Thanks, Wolfgang, I would like to try it later.
>
> If I want to modify the constitutive equation based on step-8, but I can't 
> understand the expression you described in step8, like this.
>
>
>
> Which aspect of knowledge should I learn if I want to modify the 
> constitutive equation.
> Or can I export the .inp file in Abaqus modeling and directly calculate it 
> in Deal.ii? Does Deal.ii support such operations?
>
> Thanks,
>
> Best wishes,
>
> Nick
> 在2020年11月9日星期一 UTC+8 上午9:27:35 写道:
>
>> On 11/7/20 4:16 AM, Nick Wang wrote: 
>> > I have another question to ask, whether point load can be applied in 
>> deal.ii, 
>> > according to the steps I have learned, I can only apply range load 
>> temporarily 
>>
>> You can use the function VectorTools::create_point_source_vector() 
>>
>> https://www.dealii.org/7.3.0/doxygen/deal.II/namespaceVectorTools.html#ad03b858b1a3b59003a76f6224e67efc7
>>  
>> You might also want to look into the implementation of the function if 
>> you 
>> need to implement a slightly different situation. 
>>
>> Best 
>> W. 
>>
>> -- 
>>  
>> Wolfgang Bangerth email: bang...@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/721e5532-022d-4944-8b41-6dd1a0b4b544n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-09 Thread Nick Wang
Thanks, Wolfgang, I would like to try it later.

If I want to modify the constitutive equation based on step-8, but I can't 
understand the expression you described in step8, like this.



Which aspect of knowledge should I learn if I want to modify the 
constitutive equation.
Or can I export the .inp file in Abaqus modeling and directly calculate it 
in Deal.ii? Does Deal.ii support such operations?

Thanks,

Best wishes,

Nick
在2020年11月9日星期一 UTC+8 上午9:27:35 写道:

> On 11/7/20 4:16 AM, Nick Wang wrote:
> > I have another question to ask, whether point load can be applied in 
> deal.ii, 
> > according to the steps I have learned, I can only apply range load 
> temporarily
>
> You can use the function VectorTools::create_point_source_vector()
>
> https://www.dealii.org/7.3.0/doxygen/deal.II/namespaceVectorTools.html#ad03b858b1a3b59003a76f6224e67efc7
> You might also want to look into the implementation of the function if you 
> need to implement a slightly different situation.
>
> Best
> W.
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/825f66d0-07e9-4f39-9645-16817cf2f430n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-08 Thread Wolfgang Bangerth

On 11/7/20 4:16 AM, Nick Wang wrote:
I have another question to ask, whether point load can be applied in deal.ii, 
according to the steps I have learned, I can only apply range load temporarily


You can use the function VectorTools::create_point_source_vector()
https://www.dealii.org/7.3.0/doxygen/deal.II/namespaceVectorTools.html#ad03b858b1a3b59003a76f6224e67efc7
You might also want to look into the implementation of the function if you 
need to implement a slightly different situation.


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/d46564ef-6931-9ec1-ba69-0c57ad7f4011%40colostate.edu.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-07 Thread Nick Wang
I have another question to ask, whether point load can be applied in 
deal.ii, according to the steps I have learned, I can only apply range load 
temporarily

Best,

Nick
在2020年11月7日星期六 UTC+8 下午5:58:26 写道:

> Thanks, Bruno, I solve this problem with your help!
> I think I need to learn some more C++ ,
>
> Best wishes,
>
> Nick
> 在2020年11月6日星期五 UTC+8 下午10:44:25 写道:
>
>> Nick, 
>>
>> You didn't declare print_mesh_info and you need to replace 
>>
>> template  
>> void print_mesh_info(const Triangulation& triangulation, const 
>> std::string& filename) {...} 
>>
>> by 
>> template  
>> void ElasticProblem::print_mesh_info(const Triangulation& 
>> triangulation, const std::string& filename) {...} 
>>
>> You have the same two problems with grid_1(). These are C++ problems 
>> not deal.II, so I would advise you to read a few tutorials/books on 
>> C++. I cannot debug your entire code for you. 
>>
>> Best, 
>>
>> Bruno 
>>
>>
>> Le ven. 6 nov. 2020 à 03:04, Nick Wang  a écrit : 
>> > 
>> > Thanks, Bruno 
>> > I try to end the fuction print_mesh_info() at line 107 and re-run the 
>> step again, while it still errors that i can't understand. 
>> > 
>> > 2>step-8.obj: error LNK2019: Unresolved external symbol "private: void 
>> __cdecl Step8::ElasticProblem<2>::print_mesh_info(void)" 
>> (?print_mesh_info@?$ElasticProblem@$01@Step8@@AEAAXXZ) , The symbol is 
>> referenced in the function "public: void __cdecl 
>> Step8::ElasticProblem<2>::run(void)" 
>> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ) 2>D:\dealii-9.2. 
>> 0\dealii-9.2.0\examples\step-8d\Debug\step-8.exe: fatal error LNK1120: 1 
>> unresolved external command 
>> > 
>> > Nick 
>> > 在2020年11月6日星期五 UTC+8 上午6:14:01 写道: 
>> >> 
>> >> Hi, 
>> >> 
>> >> The function print_mesh_info() ends at line 269. It should end at line 
>> 107. 
>> >> 
>> >> Best, 
>> >> 
>> >> Bruno 
>> >> 
>> >> On Wednesday, November 4, 2020 at 9:40:57 PM UTC-5 wjs641...@gmail.com 
>> wrote: 
>> >>> 
>> >>> Okay, I re-run the program I wrote 
>> >>> vs told me that ,what that mean? 
>> >>> 
>> >>> 2>step-8.obj: error LNK2019: Unresolved external symbol "public: void 
>> __cdecl Step8::ElasticProblem<2>::run(void)" 
>> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ) , The symbol is quoted in the 
>> function main 
>> 2>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8a\Debug\step-8.exe: fatal 
>> error LNK1120: 1 unresolved external command 
>> >>> 在2020年11月4日星期三 UTC+8 上午11:09:17 写道: 
>>  
>>  On 11/3/20 7:33 PM, Nick Wang wrote: 
>>  > 
>>  > After I studied and understood the tutorials of step-8 and 
>> step-49. I tried 
>>  > to use step-49 to import external grids to to calculate the force 
>> condition 
>>  > and stress analysis, 
>>  > So I modified the statement of step8 grid generation, 
>>  > while failed... 
>>  > Did I make a mistake or are there other ways to finish the force 
>> analysis 
>>  > from external grids? 
>>  
>>  Help us understand what the error message is that you get. You 
>> already have it 
>>  on your screen, but we would need to download your program, put it 
>> somewhere, 
>>  compile it, maybe run it. It would take someone a couple of minutes 
>> to do that 
>>  -- time we wouldn't have for answering someone else's problems. 
>>  
>>  Best 
>>  WB 
>>  
>>  -- 
>>  
>>  
>>  Wolfgang Bangerth email: bang...@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/iVyeXuUkCXk/unsubscribe. 
>> > To unsubscribe from this group and all its topics, send an email to 
>> dealii+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/dealii/cb8bba7f-190f-45a5-8522-066638740ab6n%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/c0f715f0-91e8-446b-913f-1069e8dd2aacn%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-07 Thread Nick Wang
Thanks, Bruno, I solve this problem with your help!
I think I need to learn some more C++ ,

Best wishes,

Nick
在2020年11月6日星期五 UTC+8 下午10:44:25 写道:

> Nick,
>
> You didn't declare print_mesh_info and you need to replace
>
> template 
> void print_mesh_info(const Triangulation& triangulation, const
> std::string& filename) {...}
>
> by
> template 
> void ElasticProblem::print_mesh_info(const Triangulation&
> triangulation, const std::string& filename) {...}
>
> You have the same two problems with grid_1(). These are C++ problems
> not deal.II, so I would advise you to read a few tutorials/books on
> C++. I cannot debug your entire code for you.
>
> Best,
>
> Bruno
>
>
> Le ven. 6 nov. 2020 à 03:04, Nick Wang  a écrit :
> >
> > Thanks, Bruno
> > I try to end the fuction print_mesh_info() at line 107 and re-run the 
> step again, while it still errors that i can't understand.
> >
> > 2>step-8.obj: error LNK2019: Unresolved external symbol "private: void 
> __cdecl Step8::ElasticProblem<2>::print_mesh_info(void)" 
> (?print_mesh_info@?$ElasticProblem@$01@Step8@@AEAAXXZ) , The symbol is 
> referenced in the function "public: void __cdecl 
> Step8::ElasticProblem<2>::run(void)" 
> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ) 2>D:\dealii-9.2. 
> 0\dealii-9.2.0\examples\step-8d\Debug\step-8.exe: fatal error LNK1120: 1 
> unresolved external command
> >
> > Nick
> > 在2020年11月6日星期五 UTC+8 上午6:14:01 写道:
> >>
> >> Hi,
> >>
> >> The function print_mesh_info() ends at line 269. It should end at line 
> 107.
> >>
> >> Best,
> >>
> >> Bruno
> >>
> >> On Wednesday, November 4, 2020 at 9:40:57 PM UTC-5 wjs641...@gmail.com 
> wrote:
> >>>
> >>> Okay, I re-run the program I wrote
> >>> vs told me that ,what that mean?
> >>>
> >>> 2>step-8.obj: error LNK2019: Unresolved external symbol "public: void 
> __cdecl Step8::ElasticProblem<2>::run(void)" 
> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ) , The symbol is quoted in the 
> function main 
> 2>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8a\Debug\step-8.exe: fatal 
> error LNK1120: 1 unresolved external command
> >>> 在2020年11月4日星期三 UTC+8 上午11:09:17 写道:
> 
>  On 11/3/20 7:33 PM, Nick Wang wrote:
>  >
>  > After I studied and understood the tutorials of step-8 and step-49. 
> I tried
>  > to use step-49 to import external grids to to calculate the force 
> condition
>  > and stress analysis,
>  > So I modified the statement of step8 grid generation,
>  > while failed...
>  > Did I make a mistake or are there other ways to finish the force 
> analysis
>  > from external grids?
> 
>  Help us understand what the error message is that you get. You 
> already have it
>  on your screen, but we would need to download your program, put it 
> somewhere,
>  compile it, maybe run it. It would take someone a couple of minutes 
> to do that
>  -- time we wouldn't have for answering someone else's problems.
> 
>  Best
>  WB
> 
>  --
>  
> 
>  Wolfgang Bangerth email: bang...@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/iVyeXuUkCXk/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to 
> dealii+un...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/cb8bba7f-190f-45a5-8522-066638740ab6n%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/baad1acd-7c08-4fc4-a06f-3083e7126f8en%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-06 Thread Bruno Turcksin
Nick,

You didn't declare print_mesh_info and you need to replace

template 
void print_mesh_info(const Triangulation& triangulation, const
std::string& filename) {...}

by
template 
void ElasticProblem::print_mesh_info(const Triangulation&
triangulation, const std::string& filename) {...}

You have the same two problems with grid_1().  These are C++ problems
not deal.II, so I would advise you to read a few tutorials/books on
C++. I cannot debug your entire code for you.

Best,

Bruno


Le ven. 6 nov. 2020 à 03:04, Nick Wang  a écrit :
>
> Thanks, Bruno
> I try to end the fuction  print_mesh_info() at line 107 and re-run the step 
> again, while it still errors that i can't understand.
>
> 2>step-8.obj: error LNK2019: Unresolved external symbol "private: void 
> __cdecl Step8::ElasticProblem<2>::print_mesh_info(void)" 
> (?print_mesh_info@?$ElasticProblem@$01@Step8@@AEAAXXZ)  , The symbol is 
> referenced in the function "public: void __cdecl 
> Step8::ElasticProblem<2>::run(void)" 
> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ) 2>D:\dealii-9.2.  
> 0\dealii-9.2.0\examples\step-8d\Debug\step-8.exe: fatal error LNK1120: 1 
> unresolved external command
>
> Nick
> 在2020年11月6日星期五 UTC+8 上午6:14:01 写道:
>>
>> Hi,
>>
>> The function print_mesh_info() ends at line 269. It should end at line 107.
>>
>> Best,
>>
>> Bruno
>>
>> On Wednesday, November 4, 2020 at 9:40:57 PM UTC-5 wjs641...@gmail.com wrote:
>>>
>>> Okay, I re-run the program I wrote
>>> vs told me that ,what that mean?
>>>
>>> 2>step-8.obj: error LNK2019: Unresolved external symbol "public: void 
>>> __cdecl Step8::ElasticProblem<2>::run(void)" 
>>> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ)  , The symbol is quoted in the 
>>> function main 
>>> 2>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8a\Debug\step-8.exe: fatal 
>>> error LNK1120: 1 unresolved external command
>>> 在2020年11月4日星期三 UTC+8 上午11:09:17 写道:

 On 11/3/20 7:33 PM, Nick Wang wrote:
 >
 > After I studied and understood the tutorials of step-8 and step-49.  I 
 > tried
 > to use  step-49 to import external grids to to calculate the force 
 > condition
 > and stress analysis,
 > So I modified the statement of step8 grid generation,
 > while failed...
 > Did I make a mistake or  are there other ways to finish the force 
 > analysis
 > from external grids?

 Help us understand what the error message is that you get. You already 
 have it
 on your screen, but we would need to download your program, put it 
 somewhere,
 compile it, maybe run it. It would take someone a couple of minutes to do 
 that
 -- time we wouldn't have for answering someone else's problems.

 Best
 WB

 --
 
 Wolfgang Bangerth email: bang...@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/iVyeXuUkCXk/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/cb8bba7f-190f-45a5-8522-066638740ab6n%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/CAGVt9eMmxv5wuC4JmOLj-fBmLXv64rK0aO-%2BYWecxru1sc4e5w%40mail.gmail.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-06 Thread Nick Wang
Thanks, Bruno
I try to end the fuction  print_mesh_info() at line 107 and re-run the step 
again, while it still errors that i can't understand.

*2>step-8.obj: error LNK2019: Unresolved external symbol "private: void 
__cdecl Step8::ElasticProblem<2>::print_mesh_info(void)" 
(?print_mesh_info@?$ElasticProblem@$01@Step8@@AEAAXXZ)  , The symbol is 
referenced in the function "public: void __cdecl 
Step8::ElasticProblem<2>::run(void)" 
(?run@?$ElasticProblem@$01@Step8@@QEAAXXZ) 2>D:\dealii-9.2.  
0\dealii-9.2.0\examples\step-8d\Debug\step-8.exe: fatal error LNK1120: 1 
unresolved external command*

Nick 
在2020年11月6日星期五 UTC+8 上午6:14:01 写道:

> Hi,
>
> The function print_mesh_info() ends at line 269. It should end at line 107.
>
> Best,
>
> Bruno
>
> On Wednesday, November 4, 2020 at 9:40:57 PM UTC-5 wjs641...@gmail.com 
> wrote:
>
>> Okay, I re-run the program I wrote
>> vs told me that ,what that mean?
>>
>> *2>step-8.obj: error LNK2019: Unresolved external symbol "public: void 
>> __cdecl Step8::ElasticProblem<2>::run(void)" 
>> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ)  , The symbol is quoted in the 
>> function main 
>> 2>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8a\Debug\step-8.exe: fatal 
>> error LNK1120: 1 unresolved external command*
>> 在2020年11月4日星期三 UTC+8 上午11:09:17 写道:
>>
>>> On 11/3/20 7:33 PM, Nick Wang wrote: 
>>> > 
>>> > After I studied and understood the tutorials of step-8 and step-49.  I 
>>> tried 
>>> > to use  step-49 to import external grids to to calculate the force 
>>> condition 
>>> > and stress analysis, 
>>> > So I modified the statement of step8 grid generation, 
>>> > while failed... 
>>> > Did I make a mistake or  are there other ways to finish the force 
>>> analysis 
>>> > from external grids? 
>>>
>>> Help us understand what the error message is that you get. You already 
>>> have it 
>>> on your screen, but we would need to download your program, put it 
>>> somewhere, 
>>> compile it, maybe run it. It would take someone a couple of minutes to 
>>> do that 
>>> -- time we wouldn't have for answering someone else's problems. 
>>>
>>> Best 
>>> WB 
>>>
>>> -- 
>>>  
>>> Wolfgang Bangerth email: bang...@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/cb8bba7f-190f-45a5-8522-066638740ab6n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-05 Thread Bruno Turcksin
Hi,

The function print_mesh_info() ends at line 269. It should end at line 107.

Best,

Bruno

On Wednesday, November 4, 2020 at 9:40:57 PM UTC-5 wjs641...@gmail.com 
wrote:

> Okay, I re-run the program I wrote
> vs told me that ,what that mean?
>
> *2>step-8.obj: error LNK2019: Unresolved external symbol "public: void 
> __cdecl Step8::ElasticProblem<2>::run(void)" 
> (?run@?$ElasticProblem@$01@Step8@@QEAAXXZ)  , The symbol is quoted in the 
> function main 
> 2>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8a\Debug\step-8.exe: fatal 
> error LNK1120: 1 unresolved external command*
> 在2020年11月4日星期三 UTC+8 上午11:09:17 写道:
>
>> On 11/3/20 7:33 PM, Nick Wang wrote: 
>> > 
>> > After I studied and understood the tutorials of step-8 and step-49.  I 
>> tried 
>> > to use  step-49 to import external grids to to calculate the force 
>> condition 
>> > and stress analysis, 
>> > So I modified the statement of step8 grid generation, 
>> > while failed... 
>> > Did I make a mistake or  are there other ways to finish the force 
>> analysis 
>> > from external grids? 
>>
>> Help us understand what the error message is that you get. You already 
>> have it 
>> on your screen, but we would need to download your program, put it 
>> somewhere, 
>> compile it, maybe run it. It would take someone a couple of minutes to do 
>> that 
>> -- time we wouldn't have for answering someone else's problems. 
>>
>> Best 
>> WB 
>>
>> -- 
>>  
>> Wolfgang Bangerth email: bang...@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/7a2ac5d5-2b40-4b82-a0fe-f7dab8dece32n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-04 Thread Nick Wang
Okay, I re-run the program I wrote
vs told me that ,what that mean?

*2>step-8.obj: error LNK2019: Unresolved external symbol "public: void 
__cdecl Step8::ElasticProblem<2>::run(void)" 
(?run@?$ElasticProblem@$01@Step8@@QEAAXXZ)  , The symbol is quoted in the 
function main 
2>D:\dealii-9.2.0\dealii-9.2.0\examples\step-8a\Debug\step-8.exe: fatal 
error LNK1120: 1 unresolved external command*
在2020年11月4日星期三 UTC+8 上午11:09:17 写道:

> On 11/3/20 7:33 PM, Nick Wang wrote:
> > 
> > After I studied and understood the tutorials of step-8 and step-49.  I 
> tried 
> > to use  step-49 to import external grids to to calculate the force 
> condition 
> > and stress analysis,
> > So I modified the statement of step8 grid generation,
> > while failed...
> > Did I make a mistake or  are there other ways to finish the force 
> analysis 
> > from external grids?
>
> Help us understand what the error message is that you get. You already 
> have it 
> on your screen, but we would need to download your program, put it 
> somewhere, 
> compile it, maybe run it. It would take someone a couple of minutes to do 
> that 
> -- time we wouldn't have for answering someone else's problems.
>
> Best
> WB
>
> -- 
> 
> Wolfgang Bangerth email: bang...@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/4fa565f4-1ab1-4919-8818-3b58fe6169c4n%40googlegroups.com.


Re: [deal.II] Use Gmsh to import external grid calculation elasticity problem

2020-11-03 Thread Wolfgang Bangerth

On 11/3/20 7:33 PM, Nick Wang wrote:


After I studied and understood the tutorials of step-8 and step-49.  I tried 
to use  step-49 to import external grids to to calculate the force condition 
and stress analysis,

So I modified the statement of step8 grid generation,
while failed...
Did I make a mistake or  are there other ways to finish the force analysis 
from external grids?


Help us understand what the error message is that you get. You already have it 
on your screen, but we would need to download your program, put it somewhere, 
compile it, maybe run it. It would take someone a couple of minutes to do that 
-- time we wouldn't have for answering someone else's problems.


Best
 WB

--

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/577b2a87-0126-ca3b-82f4-155229dd4f4a%40colostate.edu.