288 this =
this@models.BaseFullModel;
294 cfgfile =
" Simpel1.txt ";
295 fprintf(
" No config file specified, using "" %s "" \n ",cfgfile);
298 this.NonlinearModel= nonlinear;
300 this.
Name=
" DynLin Timoschenko Beam ";
303 path = fileparts(mfilename(
" fullpath "));
307 this.
Materials= models.beam.Material.empty;
308 for midx = 1:size(raw_mat,1)
309 this.
Materials(midx) = models.beam.Material(raw_mat(midx,:));
315 this.preprocess_data;
323 this.
System= models.beam.DynLinTimoshenkoSystem(
this);
326 s = spacereduction.PODGreedy;
334 this.
Sampler= sampling.GridSampler;
338 o = solvers.MLode15i;
348 je.JavaExportPackage=
" models.beam.dynlintimo ";
351 je.JaRMoSBaseSource=
" C:\Users\CreaByte\Documents\Uni\Software\JaRMoSBase\src ";
365 #if 0 //mtoc++: 'get.ColorMap'
368 m = [0*dc dc 1-dc; dc 0*dc+1 0*dc; 0*dc+1 1-dc 0*dc];
386 fprintf(f,
" \t<dimension>3</dimension>\n ");
387 fprintf(f,
" \t<nodes>%d</nodes>\n ",size(this.
Points,1));
389 fprintf(f,
" \t<hasFaces>false</hasFaces>\n ");
395 usedpts = [usedpts el.PointsIdx];
398 usedpts = unique(usedpts);
401 export.saveRealVector(vert,
" vertices.bin ", folder);
404 fprintf(f,
" \t<hasDirichletNodes>true</hasDirichletNodes>\n ");
405 export.saveRealVector(int16(this.
dir_u),
" dir_nodes.bin ", folder);
406 export.saveRealVector(this.
u_dir,
" dir_values.bin ", folder);
411 edges((2*i-1):(2*i)) = this.
Elements[i].PointsIdx;
413 export.saveRealVector(edges,
" edges.bin ", folder);
438 #if 0 //mtoc++: 'set.BeamRefinementFactor'
442 this.ModelData.SimCache.clearTrajectories;
448 this.preprocess_data;
450 this.
System.buildElementDependentComponents;
459 #if 0 //mtoc++: 'get.BeamRefinementFactor'
468 #if 0 //mtoc++: 'set.CurvedBeamRefinementFactor'
472 this.ModelData.SimCache.clearTrajectories;
478 this.preprocess_data;
480 this.
System.buildElementDependentComponents;
489 #if 0 //mtoc++: 'get.CurvedBeamRefinementFactor'
499 function [Points , RO_raw , KR , FH , mat , lager , lasten ] = read_file(file);
501 function [data , RO , KR , FH , p ] = preprocess_data(
RO_raw,
KR_raw,
FH_raw,c,supports,loads,gravity,
RO_factor_global,
KR_factor_global);
510 m = models.beam.DynLinTimoshenkoModel(
" Rohrleitungen z.txt ");
511 m.BeamRefinementFactor= 5;
512 m.TrainingInputs= 1:m.System.InputCount;
515 m.System.Params(1).Range = [0 2];
516 m.System.Params(1).Desired = 10;
517 m.System.Params(2).Range = [0 .1];
518 m.System.Params(2).Desired = 10;
519 m.System.Params(3).Range = 20*[-1 1];
520 m.System.Params(3).Desired = 10;
521 m.offlineGenerations;
522 r = m.buildReducedModel;
528 m = models.beam.DynLinTimoshenkoModel;
531 m = models.beam.DynLinTimoshenkoModel(
" Simpel1.txt ",
true);
536 mu = m.getRandomParam;
537 for in = 1:m.System.InputCount
538 fprintf(
" Running with input %d, mu=%s\n ",in,num2str(mu));
539 [
t,y] = m.simulate(mu,in);
function file = save(char directory,char filename)
Saves this instance inside the data.ModelData.DataDirectory folder using the model's SaveTag if set o...
char Name
The name of the Model.
matrix ColorMap
The color map to use. Value is hardcoded so far.
static function test_TimoshenkoModel()
Linear.
function useFileTrajectoryData(logical overwrite)
Sets the TrajectoryData and TrajectoryFxiData classes to filesystem based versions.
double PlotFactor
Plot enhancement factor.
The base class for any KerMor detailed model.
u_dir
Extracted Dirichlet values full u vector (using dir_u)
double dt
The desired time-stepsize for simulations.
integer TrainingInputs
The indices of inputs to use for training data generation. Uses the DefaultInput if not set (and Defa...
sampling.BaseSampler Sampler
The sampling strategy the Model uses.
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
function plotSingle(double t,colvec u,handle h)
plot_single: Plots a single beam configuration for given time and field data.
struct Elements
Cell array of all model structure elements.
reshape
hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape ...
f_neum
Vector for neumann boundary conditions.
function plot(rowvec t,matrix u)
plot: Plots the current displacements and heat (u = 4 x numNodes x timesteps matrix) ...
JKerMorExport: Export class for JaRMoS model generation from KerMor models.
Matlab's base handle class (documentation generation substitute)
static const withHeat
No heat modeling at the current stage.
integer NumColors
Number of colors for plotting.
char ConfigFile
The configuration file used for this model.
maxTemp
Maximum temperature for plotting.
solvers.BaseSolver ODESolver
The solver to use for the ODE. Must be an instance of any solvers.BaseSolver subclass.
minTemp
Maximum temperature for plotting.
static function experiment1()
InputCount
The number of inputs available.
export.JKerMorExport JKerMorExport
Export instance for possible export of this model to JKerMor.
approx.BaseApprox Approx
The approximation method for the CoreFunction.
double BeamLineWidth
The beam line width for plotting.
double T
The final timestep up to which to simulate.
data.ModelData Data
The full model's data container. Defaults to an empty container.
function exportGeometry(handle f,char folder,export.JaRMoSExport export)
Exports the model geometry to JKerMor.
CurvedBeamRefinementFactor
matrix Points
3D coordinates of the beam end points
spacereduction.BaseSpaceReducer SpaceReducer
The reduction algorithm for subspaces.
dscomponents.ACoreFun f
The core f function from the dynamical system.
free
The indices in the global state space vector of all points including dirichlet points (dim=7: 3locati...
logical NonlinearModel
Flag that indicates if the nonlinear model is used.
DynLinTimoshenkoModel(char cfgfile,logical nonlinear)
Creates a new timoshenko model.
A MatLab character array.