Topic: Targe2

Hi,

Targe2 seems to be not available here:
http://hogwarts.ucsd.edu/~pkrysl/software.html

are there any other sources which I could try?
Thanks in advance....

greetz
Gerco-Kees
<><

2

Re: Targe2

Hi,

the link seems broken, I will report this to Peter.
In the meantime, I have attached Targe2 source tarball as well as a simple targe2oofem conversion script (written in perl).

With best regards,
Borek

PS: to see the attachments, you have to login.

3 (edited by gercokees 10-04-2008 07:57:07)

Re: Targe2

Thanks a lot,
but i am afraid the compiling did not work (probably an old version?).... I can post the output of ./configure and ./ make targe2 if you like, but i did solve the problem already following this link:
http://hogwarts.ucsd.edu/~pkrysl/sofea/publish.html

I started exploring oofem a few weeks ago and already like it a lot!!! Keep up the good work....

4

Re: Targe2

Hi,

I tried the compilation myself and it seems that the configure is slightly outdated.
But it can be easily fixed. The procedure I have used is following:

First fix the old configure, that is not able to recognize newer architectures
1) generate new configure from configure.in bu running "autoconf" in Targe2/src
2) replace old "config.guess" and "config.sub" by newer ones (from autoconf installation or from oofem)

Fix problem with memcpy:
3) edit "Targe2/include/targe2cf.h" - add these three lines after #include <Tcfg.h> (line 35):
#ifdef NEED_MEMORY_H
#include <memory.h>
#endif

This works (at least for me). Thank you for the link to sofea.
Borek

Re: Targe2

Hi,
I am very sorry, but i still could not get it to work... However, no problem for me, (cause i have it already running using the sofea source) but might be helpfull for future reference....

gercokees@waark:~/oofem/Targe2/src$ make targe2
gcc  -c -I../../Ckit/include -I../../Elixir/include -I../include  -DUNIX -DBUNDLE_OPTS -DHAVE_CONFIG_H  -g -O2  targe2.c
In file included from /usr/include/X11/Intrinsic.h:64,
                 from ../include/ttypes.h:60,
                 from targe2.c:32:
/usr/include/string.h:299: fout: conflicting types for ‘memcpy’
make: *** [targe2.o] Fout 1

6

Re: Targe2

Hi,

this is my fault. I have forgotten to mentions one modification, which needs to be done before step 1:
0) edit Targe2/src/configure.in: add following line
AC_MEMORY_H
after line 133 with
AC_HEADER_STDC

after this, run autoconf again, then configure and make.
Could you please check it again? thanks
Borek

Re: Targe2

Cool!
This works, thanks a lot!!!
Greetz (from sunny Netherlands)

Gerco-Kees
<><

Re: Targe2

Hi,
The targe2oofem.pl asks for input, output and rulesfile. Is it possible to post the rulesfile here as well? I tried with an empty file, but i am not sure whether the rulesfile makes life a lot easier...
thanks in advance...

9

Re: Targe2

Hi,

there is no doc available for targe2oofem, but I have attached a simple example, that can illustrate the use.
The format of control (*.ctrl) files is following:

# first five lines corresponds to firs five lines of oofem input
output_file_name_record
job_description_record
analysis_record (one line only)
domain_type_record
output_manager_record
number_of_cross_sections nunber_of_materials number_of_bc number_of_ltf
# next lines contain cross section, material, boundary condition and load time function records
....
# rules, that allow to assign properties to regions and vertices
# region element properties example
region 1 elemprop "crosssect 1 mat 2"
#region node properties example
region 1 nodeprop "load 1 2"
# one can combine elemprop and nodeprop on one line
region 1  elemprop "crosssect 1 mat 2" nodeprop "load 1 2"
#
# vertex node properties example
vertex 1 nodeprop "bc 2 1 0"

The targe2oofem produces "almost complete" oofem input file, one needs to add component keywords and possibly add more stuff.
The element used is also hard-coded in targe2oofem.

If someone will be interested to make an improvements, this will be very helpful.

Borek

Re: Targe2

thanx i found out how it works.
....If someone will be interested to make an improvements, this will be very helpful....
perl does not seem to be to difficult. i like to put some energy in this when time permits...

thanx.....

Re: Targe2

Hi,
    I use oofem on Windows XP professional 2002. How can I get the proper version of targe2 and targe2oofem? How can build them into the right exe file?
Thank you in advance!
                                    Nene

12

Re: Targe2

Hi Nene,

the Targe2 mesh generator can be obtained from Peter Krysl homepage (http://hogwarts.ucsd.edu/~pkrysl/), just follow the link to software.
The targe2oofem script is slightly outdated, but should work and only a small adjustment is needed to support recent input format. The script is in Perl, so no compilation is needed. The following syntax is deduced form targe2oofem script, since I have no example at hand.

targe2oofem converts the output of Targe2 mesh generator to the input fi le for Oofem. Targe2oofem processes on the input two files:
output fi le of Targe2 containing all relevant data and control fi le containing Oofem control records and assignment of some of these con-
trol records (boundary conditions, loading, material) to individual entities of the Targe2 model.

Targe2oofem is executed as:

targe2oofem targeOutFile oofemInFile ctrlFile

Control fi le consists of two sections, divided by at least one empty line. The first section contains Oofem control records, this
is all Oofem input file statements without the mesh (node and element statements). Note
that the statement describing the number of records in the Oofem input fi le has to be used
without nodal and element records:

An example of the fi rst section of the control fi le may look like this

test.out
testing example
linearstatic nsteps 1
domain 3d
outputmanager tstep_all dofman_all element_all
ncrosssect  1 nmat 1 nbc 2 nic 0 nltf 1
SimpleCS 1 thick 0.15
IsoLE 1 d 0. E 15.0 n 0.25 tAlpha 0.000012
BoundaryCondition  1 loadTimeFunction 1 prescribedvalue 0.0 
NodalLoad 2 loadTimeFunction 1 Components 2 -2.5 0.0
ConstantFunction 1 f(t) 1.0


The second section contains records describing assignment of node and element properties.
Each assignment consists of model entity or model property speci cation followed by one or
more node property speci cation(s), element property speci cation(s), element type spec-
i cation(s) and boundary load and/or code speci cation(s).
The syntax of assignments records is following:

vertex # nodeprop #
region # nodeprop #
region # elemprop #

An example of the model entity speci cation may look like this:

vertex 1 nodeprop "bc 2 1 1"
vertex 2 nodeprop "bc 2 1 0 load 1 2"

region 1 nodeprop "bc 2 1 0"
region 1 elemprop "crossSect 1 mat 1 NIP 1"

At present generated element type is TrPlaneStress2d, but this can be easily replaced.
If there will be an interest, I can provide working example as well.
Borek

Post's attachments

targe2oofem.pl 2.33 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.