doc:user:elements:general:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:elements:general:start [2013/07/11 17:47] – joris | doc:user:elements:general:start [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Introduction ====== | ||
+ | |||
+ | ===== ElementProperties ===== | ||
+ | |||
+ | Metafor '' | ||
+ | |||
+ | === Notes === | ||
+ | |||
+ | * In [[doc: | ||
+ | * The use of an '' | ||
+ | |||
+ | |||
+ | ===== Interaction ===== | ||
+ | |||
+ | Initially, in Metafor, “'' | ||
+ | |||
+ | {{ doc: | ||
+ | |||
+ | __Careful__: | ||
+ | |||
+ | Two '' | ||
+ | |||
+ | |||
+ | |||
+ | ===== Links between Interaction and ElementProperties ===== | ||
+ | |||
+ | In practice, an '' | ||
+ | |||
+ | This association of an '' | ||
+ | |||
+ | interactionset(no).addProperty(prp) | ||
+ | |||
+ | which adds the '' | ||
+ | |||
+ | In the data set, the best way to write this is a follow (example given for volume elements): | ||
+ | |||
+ | #1. Definition of the properties of finite volume element | ||
+ | # | ||
+ | prp1 = ElementProperties (Volume2DElement) | ||
+ | #and defines the type of element '' | ||
+ | prp1.put (MATERIAL, 1) #Number of the associated material | ||
+ | prp1.put (OMEGA_PT1, 101) # | ||
+ | prp1.put (OMEGA_PT2, 102) # | ||
+ | prp1.put (OMEGA, Omega) | ||
+ | | ||
+ | fct1 = PieceWiseLinearFunction() | ||
+ | fct1.setData(0., | ||
+ | fct1.setData(1., | ||
+ | | ||
+ | prp1.depend (OMEGA, fct1, Field1D(TM, | ||
+ | #(and depends on the time) | ||
+ | prp1.put (STIFFMETHOD, | ||
+ | |||
+ | prp1.put (CAUCHYMECHVOLINTMETH, | ||
+ | #to standard (integrate deviatoric stresses and | ||
+ | #pressure for each integration point, careful to locking!) | ||
+ | | ||
+ | #2. Generation of volume finite elements on the mesh | ||
+ | # | ||
+ | app = FieldApplicator(1) | ||
+ | app.push(sideset(1)) | ||
+ | app.addProperty(prp1) | ||
+ | interactionset.add(app) | ||
+ | |||
+ | |||
+ | __Careful: | ||
+ | |||
+ | Another way to do this is with the commands: | ||
+ | |||
+ | prp = ElementProperties(typeEl) | ||
+ | interactionset(no).addProperty(prp) | ||
+ | prp.put(param1, | ||
+ | prp.depend(param1, | ||
+ | prp.put(param2, | ||
+ | prp.depend(param2, | ||
+ | ... | ||
+ | |||
+ | However, to this day '' | ||
+ | |||
+ | prp = interactionset(no).addProperty( ElementProperties(typeEl) ) |